Assembly তে দুইটা সংখ্যা বিয়োগ করার প্রোগ্রাম
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
; Subtract two number. | |
; Tested on emulator 8086 | |
.CODE | |
MAIN PROC | |
MOV AX, 10 | |
MOV BX, 2 | |
SUB AX, BX | |
AAM ; Take carry if any | |
; convert to char. | |
ADD AH, 48 | |
ADD AL, 48 | |
MOV BX, AX ; copy data to BX | |
MOV AH, 2 ; print function | |
MOV DL, BH ; print BH data | |
INT 21H | |
MOV DL, BL ; print BL data | |
INT 21H | |
END MAIN |
Comments
Post a Comment