Created
April 15, 2019 14:19
-
-
Save Karl-Han/bf8f520ef5d6f7439846e589f7289646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data segment | |
char db 'i' | |
data ends | |
stack1 segment para stack | |
dw 10h dup(0) | |
stack1 ends | |
codeseg segment | |
start: | |
assume cs:codeseg, ds:data, ss:stack1 | |
mov ax, data | |
mov ds, ax | |
mov cx, 8 | |
mov bl, char | |
lower: | |
shl bl, 1 | |
mov dl, '0' | |
jnc str1 | |
inc dl | |
str1: | |
mov ah, 02h | |
int 21h | |
loop lower | |
mov ah, 4ch | |
int 21h | |
codeseg ends | |
end start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment