Skip to content

Instantly share code, notes, and snippets.

@Karl-Han
Created April 15, 2019 14:19
Show Gist options
  • Save Karl-Han/bf8f520ef5d6f7439846e589f7289646 to your computer and use it in GitHub Desktop.
Save Karl-Han/bf8f520ef5d6f7439846e589f7289646 to your computer and use it in GitHub Desktop.
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