Add basic support for ORIC Atmos
git-svn-id: svn://svn.cc65.org/cc65/trunk@2046 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
18
libsrc/atmos/kbhit.s
Normal file
18
libsrc/atmos/kbhit.s
Normal file
@@ -0,0 +1,18 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2003-04-13
|
||||
;
|
||||
; int kbhit (void);
|
||||
;
|
||||
|
||||
.export _kbhit
|
||||
|
||||
.include "atmos.inc"
|
||||
|
||||
_kbhit:
|
||||
ldx #$00 ; Load high byte
|
||||
lda KEYBUF ; Flag for new char in bit 7
|
||||
asl a ; Shift bit 7 into carry
|
||||
txa ; A = 0
|
||||
rol a ; Move old bit 7 into bit 0
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user