8085 Program to find 2s complement of the number
Find the 2’s complement of the number stored at memory location 4200H and store
the complemented number at memory location 4300H.
For this example we have replaced address :
4200 -> 0700 and 4300 -> 0701
LDA 0700 – A 24 bits (3 bytes) command which will load content of memory location 0700 in register A i.e. Accumulator.
CMA – It will complement the binary value of Accumulator.
INR A – 1 byte command, it stands for Increment Register. It will add 1 to the value of register contain in this case it will add 1 to the value of accumulator.
STA 0701 – A 24 bits command which will store data of accumulator in memory location 0701.
HTL – It means Halt the microprocessor.
program to find 2s complement of the number and stored in memory location in 8085
Connect with us on following platforms
Checkout Other Microprocessor Architecture Practical Program
Checkout Other Microprocessor Architecture Quiz
|Microprocessor, microcomputers, and Assembly Language|
|1 – Best Microprocessor Architecture Quiz on chapter 1|
|2 – Best Quiz on Microprocessor Architecture chapter 1|
|Introduction to 8085 Assembly Language Programming|
|1 – Easy Quiz on 8085 Assembly Language Programming|
|2 – Easy Quiz on 8085 Assembly Language Programming|
|Microprocessor Architecture and Microcomputer System|
|1 – Easy Microprocessor Architecture and Microcomputer System Quiz|
|8085 Microprocessor Architecture and Memory Interface|
|1 – Easy quiz on 8085 Microprocessor Architecture and Memory Interfacing|
|Interfacing of I/O Devices|
|1 – Easy quiz on 8085 Interfacing of I/O Devices|
|Introduction to 8085 Instructions|
|1 – Easy quiz on 8085 Instructions|
|More coming soon… stay tune|