EXCHANGE OF THE CONTENTS OF THE BLOCK

WRITE THIS IN THE WRITING SIDE OF THE JOURNAL

ADDRESSOPCODELABELMNEMONICSCOMMENT
40000EMVI C,0AH;set counter C=10
400121 50 40LXI H,4040H;set memory pointer in HL
400411 40 40LXI D,4050H;set second memory pointer in DE
40051ACONT:LDAX D;load Acc. from mem. to DE
400647MOV B,A;move Acc. to B
40077EMOV A,M;move data of HL mem. to A
400812STAX D;store acc. data to mem. of DE
400970MOV M,B;move B to memory of HL
400A23INX H;increment HL address
400B13INX D;increment DE address
400C0DDCR C;decrement counter
400DC2 08 40JNZ CONT;jump if not zero to CONT
401076hlt;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

WRITE THIS IN THE BLANK SIDE OF THE JOURNAL

Scroll to Top