home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng)
/
ProfitPress-MegaCDROM2.B6I
/
MAGAZINE
/
MISC
/
PCTV2N6.ZIP
/
SCANCODE.ASM
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Assembly Source File
|
1991-11-14
|
389 b
|
17 lines
; Listing 1 -- Using EQU to define text macros
;
; Return registers for INT 16h, Function 0
;
ScanCode equ <ah>
AsciiValue equ <al>
WaitForESC:
mov ah,0
int 16h
cmp ScanCode,1 ;expands to "cmp ah,1"
jne WaitForESC
cmp AsciiValue,27 ;expands to "cmp al,27"
jne WaitForESC
; ESC key has been pressed, continue processing