Programming of 8085 PPT 1
Programming of 8085 PPT 1
Programming of 8085 PPT 1
● First byte of instruction 3E is for MVI A and second byte is the the
data 05which is to be placed in A
● Mahine code 47 is for move data from reg A to reg B
3. Load the content of the memory location FC50H
directly to the reg A , then transfer it to reg B
Memory Machine Mnemonics Operand Comments
FC00 3A,50,FC LDA FC50 Get the content of
the memory location
FC50H into accumulator
65=0110 0101
● This program does not take carry into account after ADD instruction
Shift an 8 bit number left by two bit
Mnemonics Operand Comments
LDA 2501 Get data in accumulator
ADD A Shift it left by one bit
ADD A Again shift by one bit
STA 2502 store result
HLT Halt
●
Shift a 16 bit number left by two bit
Mnemonics Operand Comments
LHLD 2501 Get data in accumulator
DAD H Shift it left by one bit
SHLD 2502 store result
HLT Halt