Google Search

Friday, October 7, 2011

1. ALP for addition of two 8 bit numbers using indirect addressing mode


1ALP for addition of two 8 bit numbers using indirect addressing mode


data segment
first db ?
second db ?
sum db 1 dup(0)
data ends
code segment
assume cs:code, ds:data
start:
mov al,first
mov bl,second
add al,bl
mov sum,al
code ends
end start

0 comments:

Post a Comment