Finding one’s (1's) complement of a number

No comments
Statement : Find the I’s complement of the number stored at memory location 4400H and store the complemented number at memory location 4300H.

Sample problem:

(4400H)  =  55H
Result     =  (4300B)  =  AAB

Source program:

LDA  4400B   : “Get the number”
CMA               : “Complement number”
STA  4300H    : “Store the result”
HLT                : “Terminate program execution”

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀