WRITE THIS IN THE WRITING SIDE OF THE JOURNAL
| ADDRESS | OPCODE | LABEL | MNEMONICS | COMMENT |
|---|---|---|---|---|
| 4000 | 0E | MVI C,0AH | ;set counter C=10 | |
| 4001 | 21 50 40 | LXI H,4040H | ;set memory pointer in HL | |
| 4004 | 11 40 40 | LXI D,4050H | ;set second memory pointer in DE | |
| 4005 | 1A | CONT: | LDAX D | ;load Acc. from mem. to DE |
| 4006 | 47 | MOV B,A | ;move Acc. to B | |
| 4007 | 7E | MOV A,M | ;move data of HL mem. to A | |
| 4008 | 12 | STAX D | ;store acc. data to mem. of DE | |
| 4009 | 70 | MOV M,B | ;move B to memory of HL | |
| 400A | 23 | INX H | ;increment HL address | |
| 400B | 13 | INX D | ;increment DE address | |
| 400C | 0D | DCR C | ;decrement counter | |
| 400D | C2 08 40 | JNZ CONT | ;jump if not zero to CONT | |
| 4010 | 76 | hlt | ;ending 8085 in halt state |
Stick this printout on the left side (i.e in the blank side)



) Sign Flag is reset: Result is positive
) Zero flag is set: result is set to zero after the execution of arithmetic or logical operation
) auxiliary carry flag is set: there is a carry from bit D3 to D4
) parity flag is set: result stored in accumulator contain even number of 1’s
) carry flag is result: no carry or borrow bit during the execution of arithmetic operation
