Addition of two 8-bit numbers
data segment
a db 09h
b db 0fh
c dw ?
data ends
code segment
assume cs:code, ds:data
start:
mov ax, data
mov ds, ax
mov al, a
mov bl, b
add al, bl
mov c, ax
mov ah,4ch
int 21h
code ends
end start Understand the code
Data Segment:
Code Segment:
Last updated

