(7) DATAX DATAY ( DIV)
(1) MOV AX, DATAX
ADD DATAY, AX
MOV AX, DATAX+2
ADD DATAY+2, AX
(2) MOV AX, DATAX
ADD DATAY, AX
MOV AX, DATAX+2
ADC DATAY+2, AX
MOV DATAY+4, 0
ADC DATAY+4, 0
(3) DATAX DATAY 1 BX
(4) RESULT1 DW 0
DW 0
RESULT2 DW 0
DW 0
MOV AX, DATAX
MUL DATAY
MOV RESULT1 , AX
MOV RESULT1+2, DX
MOV AX, DATAX+2
MUL DATAY+2
MOV RESULT2 , AX
MOV RESULT2+2, DX
(5) AA DW 0
BB DW 0
CC DW 0
DD DW 0
MOV AX, DATAX
MUL DATAY
MOV AA , AX
MOV BB, DX
MOV AX, DATAX
MUL DATAY+2
ADD BB, AX
ADC CC, DX
MOV AX, DATAX+2
MUL DATAY
ADD BB, AX
ADC CC, DX
ADC DD, 0
MOV AX, DATAX+2
MUL DATAY+2
ADD CC, AX
ADC DD, DX
(6) MOV AX, DATAX
MOV BL, 23
DIV BL
(7) MOV DX, DATAX+2
MOV AX, DATAX
DIV DATAY
3.21 DX AX
NEG DX NOT DX
NEG AX NOT AX
SBB DX, 0 ADD AX, 1
ADC DX, 0
3.22 A A+2
B B+2
MOV AX, A
MOV DX, A+2
CMP DX, 0
JNS ZHENSHU
NEG DX
NEG AX
SBB DX, 0
ZHENSHU: MOV B, AX
MOV B+2, DX
INT 20H
3.23 (BX)=0E3H VALUE 79H
(1) XOR BX, VALUE (BX)=9AHCFOF 0AF SF=1
ZF=0PF=1
(2) AND BX, VALUE (BX)=61HCFOF 0AF SF=0
ZF=0PF=0
(3) OR BX, VALUE (BX)=0FBHCFOF 0AF SF=1
ZF=0PF=0
(4) XOR BX, 0FFH (BX)=1CH CFOF 0AF SF=0
ZF=0PF=0
(5) AND BX, 0 (BX)=00HCFOF 0AF SF=0
ZF=1PF=1
(6) TEST BX, 01H (BX)=0E3HCFOF 0AF SF=1
ZF=0PF=0
3.24 BX
(BX)=6D16H
MOV CL, 7
SHR BX, CL
(BX)=00DAH
3.25 +53 -49 2
2
MOV AL, 53
SAL AL, 1 (AL)=(+53*2)=6AH
MOV AL, -49
SAL AL, 1 (AL)=(-49*2)=9EH
MOV AL, 53
SAR AL, 1 (AL)=(53/2)= 1AH
MOV AL, -49
SAR AL, 1 (AL)=(-49/2)=0E7H
3.26
MOV CL, 04
SHL DX, CL
MOV BL, AH
SHL AX, CL
SHR BL, CL
OR DL, BL
((DX),(AX)) 4
10H (16)
3.27 (DX)=0B9H(CL)=3 (CF)=1
DX
(1) SHR DX, 1 (DX)=05CH
(2) SAR DX, CL (DX)=17H
(3) SHL DX, CL (DX)=5C8H
(4) SHL DL, 1 (DX)=72H
(5) ROR DX, CL (DX)=2017H
(6) ROL DL, CL (DX)=0CDH
(7) SAL DH, 1 (DX)=0B9H
(8) RCL DX, CL (DX)=2CCH
(4) RCR DL, 1 (DX)=0DCH
3.28 BX
MOV CL, 3
MOV BX, 0B7H
ROL BX,1
ROR BX, CL
(BX)=0C02DH
3.29
CONAME DB SPACE EXPLORERS INC.