2.3
BX=5566H AX=3344H CX=5566H DX=1122H
堆栈存储器的逻辑地址、堆栈指示器的指向及栈区的内容如下图所示。
SP-W095BH: 003AH f
SP^095EH;0010H-P-
2.4
0036H, 003AH 2.5 程序段 MOVAX 0 DEC AX ADD AX 7FFFH ADC AX 1 NEG AX OR AX 3FDFH AND AX 0EBEDH XCHG AH AL SAL AX,1 RCL AX, 1 2.6 。 指 SUB [BP],AL MOV [BX],BH MOV [DI],DL MOV ES [SI] ,BL ADD [BP+500H],AH SUB [SI £00H],AL MOV [DI+1000H],DL MOV [BXd],CL MOV ES [DI+1000H],CH MOV [BP+SI],DH MOV [BX+DI],DL 2.7 OOOOH, 0880H,
0081H, 0800H 令 存储器操作数的逻辑地址 0FC0H 0000H 1000H: 0000H 1000H: 0000H 2000H: 0000H 0FC0H 0500H 1000H: FD00H AX 0000 FFFF 7FFE 8000 8000 BFDF ABCD CDAB 9B56 36AD 注释 段地址在SS 段地址在SS -300H=FD00H -8=FFF8H 1000H: 1000H 1000H: FFF8H 2000H: 1000H 0FC0H 0000H 段地址在SS 1000H: 0000H 2.8 NEG AX , AND AX,7FFFH
2.9 (1)
MOV CL 4
(4)方法
1 :
(2) (3)
方法2:
(6)
SHL AX,CL SHL BL, CL MOV AL, BL SHR DH CL OR AL,
DH XOR CX
0FF0H
MOV AL, [BX] MOV AH 0 ADD AL, [BX+1] ADC AH 0 ADD AL, 2 [BX] ADC AH
0 [BX]
MOV AL, XCHG AL [BX+3] MOV [BX],AL MOV AL,1[BX] XCHG AL 2[BX] MOV 1[BX],AL
MOV AX [BX] XCHG AH 2[BX] XCHG AL 3[BX] MOV [BX],
AX XCHG
BL
BH BL
OFH
MOV AL,
4
AND BL,
CL
MOV CL
BH
SHR AL,
0FH
MOV DL
CL
AND DL, BH
SHR BH, MOV CL
MOVAH , 0 MOV CL 2 SHL AX, CL MOV DX AX SHL AX, CL ADD AX DX
;将AL中的无符号数扩展成16位 ;将AX乘以4 ;将AX再乘以4
2.10
数据的存储形式: