Last active
February 1, 2016 19:58
-
-
Save abrarShariar/b0627ddbea1688678fd5 to your computer and use it in GitHub Desktop.
Code for display int equivalence of hexa characcters
This file contains hidden or 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
.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