1. ADD: - The content of the operand are added to the content of the accumulator and the result is stored in Accumulator.
Eg- ADD B (it adds the content of the accumulator to the content of the register B)
ADD M (if the content is stored in memory location it is added with the content stored in the accumulator)
2. ADC: -
addition with carry
Eg:- ADC B , ADC M
3. SUB: - subtract the content of a register or a memory location from the content of the accumulator and the result is stored in the accumulator.
Eg: - SUB B( it subtracts the content of B register from the content of the accumulator.
SUB M( it subtracts the content of memory location pointed by HL pair from the content of accumulator.
4. SBB: - subtract with borrow.
Eg: - SBB B
SBB M
Eg: - SUB B( it subtracts the content of B register from the content of the accumulator.
SUB M( it subtracts the content of memory location pointed by HL pair from the content of accumulator.
4. SBB: - subtract with borrow.
Eg: - SBB B
SBB M
5. INR: - The contents of the designated register or memory) are incremented by 1 and the result is stored in the same place. If the operand is a memory location, its location is specified by the contents of the HL registers.
Eg: -INR B( the content of register B is incremented by 1.
INR M( the content of memory location pointed by HL pair in incremented by 1)
6.DCR: - The contents of the designated register or memory are M decremented by 1 and the
result is stored in the same place. If the operand is a memory location, its location is specified by the contents of the HL registers.
result is stored in the same place. If the operand is a memory location, its location is specified by the contents of the HL registers.
Eg: - DCR B(the content of register B is decremented by 1)
DCR M(the content of memory location pointed by the HL pointer is decremented by 1.)
write an assembly language code in gnusim8085 that performs addition and subtraction of given two 16 bit numbers.
9)Briefly explain the following 8085 logical instructions: CMP, ANA, ORA, XRA, CMA, CMC, STC. Also, write an assembly language code in gnusim8085 to find 1's and 2's complement of 8-bit numbers. Ans:- (Click here to View)
7) Briefly explain the following 8085 data transfer instructions: MOV, MVI, LDA, STA. Also, write an assembly language code in gnusim8085 that swaps the content of two memory locations. Ans:- (Click here to View)
No comments:
Post a Comment