Assembler






:
,
.
.
, 128 ,
. , ,
ZERO, ;
128 .
:
JNZ CONTINUE
JMP ZERO
CONTINUE:
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:01:56
. 4.28 Page 1-1
 
 
PAGE ,132
TITLE . 4.28
 
0000 CODE SEGMENT
ASSUME CS:CODE
 
;----------------------------------------
; ,
;
; AL.
;
;----------------------------------------
 
0000 2A FF SUB BH, BH ; BH <- 0
0002 8A D8 MOV BL, AL ; BL
0004 D1 E3 SHL BX, 1 ; * 2
0006 2E: FF A7 000B R JMP CS:[BX + BRANCH_TABLE] ;
 
000B BRANCH_TABLE LABEL WORD
000B 0011 R DW ROUTINE_ONE
000D 0011 R DW ROUTINE_TWO
000F 0011 R DW ROUTINE_THREE
; ...
 
0011 ROUTINE_ONE LABEL NEAR
0011 ROUTINE_TWO LABEL NEAR
0011 ROUTINE_THREE LABEL NEAR
 
0011 CODE ENDS
END
 
. 4.28
 
.
ZERO ,
32768 ,
CONTINUE.
 
,
,
.
, .
.
,
, .
,
, ,
, .