home *** CD-ROM | disk | FTP | other *** search
- ;
- ; *** Listing 9-4 ***
- ;
- ; An example of using CMP reg,0 to test for the
- ; zero/non-zero status of a register.
- ;
- sub dx,dx ;set DX to 0, so we don't jump
- call ZTimerOn
- rept 1000
- cmp dx,0 ;is DX 0?
- jnz $+2 ;just jumps to the next line if
- ; Z is not set (never jumps)
- endm
- call ZTimerOff