home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 18 / altpause.dba < prev    next >
Text File  |  1992-02-14  |  468b  |  12 lines

  1. MOV   AX,40
  2. MOV   DS,AX             ; BIOS data segment 0040h
  3. MOV AL, 0               ; prepare 0 for errorlevel
  4. JMP 10B;;TEST           ; jump to test
  5. ;109;;ERRLEV1        ; simulated label
  6. MOV AL, 1               ; put 1 in errorlevel
  7. ;10B;;TEST           ; simulated label
  8. TEST  BYTE PTR [17],0F  ; test shift state byte
  9. JNZ   109;;ERRLEV1      ; if any shift pressed, jump back 2 lines
  10. MOV   AH,4C             ; exit with errorlevel set to AL
  11. INT   21
  12.