In: Computer Science
ARITHMETIC INSTRUCTIONS
a) ADD with register/memory
ADD r [or] ADD M
b) ADD immediate.
ADI 8 bit data
c) ADD with carry
ADC r [or] ADC M
Exercise 1: Write Assembly Language Program to add any 3 numbers.
Exercise 2: Write Assembly Language Program to add the value 05H with value stored in register C.
Greetings!!
1. Adding 3 numbers:
Code:
Output screenshots:
Result is in Accumulator and carry flag: Answer is 132, 32 is stored in Accumulator and 1 is in carry flag
Contents of memory address:
2. Code:
Output screenshots:
Hope this helps