home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zoa / zen_list.exe / LST8-7.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  310b  |  19 lines

  1. ;
  2. ; *** Listing 8-7 ***
  3. ;
  4. ; Initializes a variable to 0 via a register-register SUB,
  5. ; followed by the accumulator-specific form of MOV to a
  6. ; direct-addressed operand.
  7. ;
  8.     jmp    Skip
  9. ;
  10. InitialValue    dw    ?
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     sub    ax,ax
  16.     mov    [InitialValue],ax
  17.     endm
  18.     call    ZTimerOff
  19.