What is Register Addressing Mode ?
Register Addressing Mode :-
In register addressing mode the operands are in the general purpose register. The op code specifies the address of the register in addition to the operation to be performed.
Example are:
1) MOV A P (move the content of register B to accumulator)
The op code for MOV A B is 78H. Beside the operation to be performed the op code also specifies the registers which contain data. The op code 78H can be written in binary form on the first two bits (01) are for MOV operation, the next 3 bits (111) are the binary code for register A and the last three bits (000) are the binary code.
2) ADD P (Add the content register B to the accumulator)
The op code for ADD B is 80H,in the instruction one of the operands is register B which is in direction the instruction .the op code 80H can be written in binary form as 10000000. The first five bits (10000) specify the operation to be performed, Let ADD. The last three bits(000) are the binary codes for register B for 8085 up.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment