Skip to content

Instantly share code, notes, and snippets.

@abrarShariar
Last active February 1, 2016 19:58
Show Gist options
  • Save abrarShariar/b0627ddbea1688678fd5 to your computer and use it in GitHub Desktop.
Save abrarShariar/b0627ddbea1688678fd5 to your computer and use it in GitHub Desktop.
Code for display int equivalence of hexa characcters
.model small
.stack 100h
.data
num db ?
.code
main proc
mov ax,@data
mov ds,ax
mov ah,1 ;input
int 21h
mov num,al
mov bl,num
sub bl,17
;output
mov ah,2
mov dl,'1'
int 21h
mov dl,bl
int 21h
main endp
end main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment