Skip to content

Instantly share code, notes, and snippets.

@menon92
Last active July 25, 2017 19:01
Show Gist options
  • Save menon92/3d2ea7e74cccb879b0d656705e0cd928 to your computer and use it in GitHub Desktop.
Save menon92/3d2ea7e74cccb879b0d656705e0cd928 to your computer and use it in GitHub Desktop.
; addition of two number.
; Tested on emulator 8086
.CODE
MAIN PROC
MOV AX, 10
MOV BX, 2
ADD 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment