Category : Files from Magazines
Archive   : VOL11N18.ZIP
Filename : ALTPAUSE.DBA

 
Output of file : ALTPAUSE.DBA contained in archive : VOL11N18.ZIP

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