mirror of
https://github.com/cc65/cc65.git
synced 2024-08-17 03:29:15 +00:00
correct line, interrupts are enabled before jumping into _main git-svn-id: svn://svn.cc65.org/cc65/trunk@1217 b7a2c559-68d2-44c3-8de9-860c34a00d81
41 lines
597 B
ArmAsm
41 lines
597 B
ArmAsm
|
|
;
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
;
|
|
; 27.10.2001
|
|
; 06.03.2002
|
|
|
|
; unsigned char cgetc (void);
|
|
|
|
.export _cgetc
|
|
.import update_cursor
|
|
|
|
.include "../inc/jumptab.inc"
|
|
.include "../inc/geossym.inc"
|
|
.include "../inc/cursor.inc"
|
|
|
|
_cgetc:
|
|
; show cursor if needed
|
|
lda cursor_flag
|
|
beq L0
|
|
|
|
jsr update_cursor
|
|
lda cursor_x
|
|
ldx cursor_x+1
|
|
sta stringX
|
|
stx stringX+1
|
|
lda cursor_y
|
|
sec
|
|
sbc curHeight
|
|
sta stringY
|
|
jsr PromptOn
|
|
|
|
L0: jsr GetNextChar
|
|
tax
|
|
beq L0
|
|
pha
|
|
jsr PromptOff
|
|
pla
|
|
ldx #0
|
|
rts
|