Assembler



- 5


 
PUSH DX
MOV DX,9
IMUL DX
POP DX
 
, 9 16=
, 32=, IMUL.
 

. ,
- . IMUL ,
.
. 4.21, 25% .
, ,
9. 2
.
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:01:21
. 4.21 Page 1-1
 
PAGE ,132
TITLE . 4.21
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE
 
;--------------------------------------------------
; , AX
; 9
;--------------------------------------------------
 
0000 MUL9 PROC NEAR
 
0000 51 PUSH CX ; CX
0001 50 PUSH AX ; AX
0002 B1 03 MOV CL, 3 ; AX 3 ,
0004 D3 F8 SAR AX, CL ; 8
0006 8B C8 MOV CX, AX ; CX <- AX * 8