📜  汇编代码以使用 mov 将数据交换到寄存器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:09.157000             🧑  作者: Mango

代码示例1
ORG 100h 
MOV AX, a           ;Set AX to 'a' variable
MOV CX, 712h        ;Set CX to 712h 
MOV DS, CX          ;Copies value of CX into DS
MOV SI, 25          ;Set SI to 0019 (decimal value of 25)
MOV [105], 6Ah      ;Sets memory address 02712:0069 to 6Ah
MOV 25[BP][SI], AX  ;PA=SS(Shifted left)+a+BP+SI
                    ;Copy data from AX to physical address(PA)
MOV DL, [BX]+6      ;Load data from PA=DS(Shifted left)+BX+6 to DL
RET                 ;stops the program

a DW 5C21h