Adding hexa-decimal numbers without carry
LDA 2200
MOV C,A
SUB A
LXI H,2201H
Back: ADDM
INT H
DCR C
JNZ Back
STA 2300H
HLT
lnitialize counter c
then make sum=0
initialize the pointer
sum = sum+data
decrement counter c
if counter is zero then repeat else
store the result
halt the program.
You might be also interested in:
:: Effective addresses
:: Floating Point Initializations
:: options available for int 21h instruction
No comments:
Post a Comment