Saturday, May 9, 2009

How do I set up the 8085 microprocessor to subtract C from B?

Write instructions to load two unsigned numbers in register B and C, respectively subtract C from B. If the result is in two's complement convert the result in absolute magnitude and store it in a memory location, otherwise store the position result. Execute the program with the following sets of data:





Set 1: B = 42 C = 69


Set 2: B = 69 C = 42


Set 3: B = F8 C = 23





How do I set this up?

How do I set up the 8085 microprocessor to subtract C from B?
loadb 42


loadc 69


loadx


subx





and the same for the other sets


No comments:

Post a Comment