Skip to content

Instantly share code, notes, and snippets.

@Karl-Han
Created April 15, 2019 14:15
Show Gist options
  • Save Karl-Han/79d4421701115a2fedee3c3b549f878b to your computer and use it in GitHub Desktop.
Save Karl-Han/79d4421701115a2fedee3c3b549f878b to your computer and use it in GitHub Desktop.
data segment
ascii db 30h,31h,32h,33h,34h,35h,36h,37h,38h,39h,
41h,42h,43h,44h,45h,46h
hex db 04h,0bh
data ends
stack1 segment para stack
dw 20h dup(?)
stack1 ends
code segment
start:
assume cs:code, ds:data, ss:stack1
mov ax, data
mov ds, ax
mov bx, offset ascii
mov al, hex
and al, 0fh
xlat
mov dl, al
mov ah, 2
int 21h
mov al, hex+1
and al, 0fh
xlat
mov dl, al
mov ah, 2
int 21h
mov ah, 4ch
int 21h
code ends
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment