从以上链接:
Content of the memory location whose address is available in H,L pair is transferred to the destination register r.
我不明白的是地址是如何进入H,L对的?我有一个内存地址,希望将其中的值传送到寄存器。我该怎么做呢?
MOV r,M
指示?
答案 0 :(得分:2)
首先必须将所需的地址加载到HL中,然后您可以获取HL指向的地址的内容,例如
LXI HL,1000h ; load 16 bit address 0x1000 into HL register pair
MOV B,(HL) ; read contents of address 0x1000 into register B
答案 1 :(得分:1)
ARHL MACRO ;ARITH RIGHT SHIFT HL
DB 10H
ENDM
DSUB MACRO ;HL=HL-BC
DB 08H
ENDM
JNXC MACRO X ;JMP IF NOT X CARRY (INX, DCX)
DB 0DDH
DW X
ENDM
JXC MACRO X ;JMP IF X CARRY
DB 0FDH
DW X
ENDM
LDHI MACRO I ;DE=HL+I
DB 28H
DB I
ENDM
LDSI MACRO I ;DE=SP+I
DB 38H
DB I
ENDM
LHLX MACRO ;HL=(DE)
DB 0EDH
ENDM
RDEL MACRO ;ROTATE DE,CY LEFT
DB 18H
ENDM
RIM MACRO ;RESET INT MASK
DB 20H
ENDM
RSTV MACRO ;RST IF V SET TO 40H
DB 0C8H
ENDM
SHLX MACRO ;(DE)=HL
DB 0D9H
ENDM
SIM MACRO ;SET INT MASK
DB 30H
ENDM