Assembler



         

- 2


0004 ???????? VALUE2 DD ?
 
0008 FIG4_11 PROC NEAR
 
;----- 32-
 
0008 COMPARE_UNEQUAL:
0008 A1 0000 R MOV AX, WORD PTR VALUE1
000B 2B 06 0004 R SUB AX, WORD PTR VALUE2 ;
000F A1 0002 R MOV AX, WORD PTR VALUE1+2
0012 1B 06 0006 R SBB AX, WORD PTR VALUE2+2 ;
0016 C3 RET ;
 
;----- 32-
 
0017 COMPARE_EQUAL:
0017 A1 0000 R MOV AX, WORD PTR VALUE1
001A 2B 06 0004 R SUB AX, WORD PTR VALUE2 ;
001E 8B D8 MOV BX, AX ; BX
0020 A1 0002 R MOV AX, WORD PTR VALUE1+2
0023 1B 06 0006 R SBB AX, WORD PTR VALUE2+2 ;
0027 0B C3 OR AX, BX ;
0029 C3 RET ; Z
 
002A FIG4_11 ENDP
 
002A CODE ENDS
END
 
. 4.11