2001-10-27 17:13:22 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
;
|
2002-12-23 22:14:14 +00:00
|
|
|
; 27.10.2001, 23.12.2002
|
2001-10-27 17:13:22 +00:00
|
|
|
|
|
|
|
; unsigned char cursor (unsigned char onoff);
|
|
|
|
|
|
|
|
.export _cursor
|
2002-03-08 16:47:34 +00:00
|
|
|
.import update_cursor
|
2002-12-31 15:35:55 +00:00
|
|
|
.importzp cursor_flag
|
2001-10-27 17:13:22 +00:00
|
|
|
.include "../inc/jumptab.inc"
|
|
|
|
.include "../inc/geossym.inc"
|
|
|
|
|
|
|
|
_cursor:
|
|
|
|
|
|
|
|
tay ; onoff into Y
|
|
|
|
ldx #0 ; High byte of result
|
2002-03-08 16:47:34 +00:00
|
|
|
lda cursor_flag ; Get old value
|
|
|
|
pha
|
2001-10-27 17:13:22 +00:00
|
|
|
sty cursor_flag ; Set new value
|
|
|
|
tya
|
|
|
|
beq L1
|
|
|
|
lda curHeight ; prepare cursor
|
|
|
|
jsr InitTextPrompt
|
2002-03-08 16:47:34 +00:00
|
|
|
jsr update_cursor ; place it on screen
|
|
|
|
L1: pla
|
|
|
|
rts
|