Professional Documents
Culture Documents
Program Related To COMPARE and Branch Instruction.: Practical - 10
Program Related To COMPARE and Branch Instruction.: Practical - 10
PRACTICAL – 10
Useful Instruction
LXI(Load register pair immediate): - The instruction loads 16-bit data in
the register pair designated in the
operand.
Eg: -
mvi a,10h
sta 9100h
lxi h,9100h (REG H=91 & L=00)
mov c,m (M 🡪HL Register Pair)
hlt
CPI Instruction
CY Z Relation
0 1 A=B
1 0 A<B
0 0 A>B
CMP M Instruction
CY Z Relation
0 1 A=M
1 0 A<M
0 0 A>M
CE/IT Department
2CEIT501 Computer Architecture and Organization
2. Write an ALP to transfer a block of memory that starting from B101H to B103H. The
destination memory address staring form C101H
First we are storing 3 numbers to B101H to B103H memory location and then we
transfer this 3 blocks to C101H to C103h.
CE/IT Department