Advertisements
Advertisements
प्रश्न
Write an Assembly Language program to transfer a block of memory starting from 1050H to 1059H to a new location starting from 1070H to 1079H.
Advertisements
उत्तर
| Label | Mnemonics + Operand | Comment |
| LXI H, 1050 | Load content from 1050 to memory | |
| LXI D, 1070 | Load content from 1070 to D reg. | |
| MVI C , 0A | Set counter to 0A H | |
| up : | MOV A, M | Move content from memory to Acc. |
| STAX D | Store Acc. content to D Reg | |
| INX H | Increment HL pair by 1 | |
| INX D | Increment D pair by 1 | |
| DCR C | Decrement counter | |
| JNZ :up | Jump If not zero to label up | |
| RST 1.0 | Restart |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
