Abhay Menon I15PH010
Abhay Menon I15PH010
I15PH010
• It only copies the data. The original is left untouched until further
instruction.
These modes are used to transfer data to and from the memory, which is split
into four distinct types, viz a viz, Internal RAM, Internal Special Function
Registers, External RAM, and Internal and External ROM
• The source of the data is part of the op-code.
• The mnemonic for Immediate data transfer, is the pound sign (#).
• One of the operand must be accumulator and other operand is any register
R0—R7. Both the operands can’t be registers. i.e., MOV R0, R4 is not a valid
instruction
• All 128-bytes of internal RAM and the SFR may be addressed directly using
one byte addresses assigned to them.
• Internal RAM uses addresses from 00H to 7FH. SFR uses the addresses
ranging from 80H to FFH at specified locations.
• 00H to 1FH are the locations assigned to the 4 banks of the 8 working
registers. Hence, for example. R2 of register bank 0 can be accessed
through the address 02H.
• Be sure to set SP to a number above those of any working register that may
be in use. Else, it will lead to error, as S.P grows upwards, and overwrites
the content in the register banks.
• PSW contains 2 bank selector bits, RS0 and RS1.
• The register itself is not the address, but rather the number in the register.