mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
adapt to atarixl target
This commit is contained in:
@@ -7,22 +7,28 @@
|
|||||||
|
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
.export _cgetc,setcursor
|
.export _cgetc,setcursor
|
||||||
|
.import KEYBDV_wrapper
|
||||||
.import cursor,mul40
|
.import cursor,mul40
|
||||||
|
|
||||||
_cgetc:
|
_cgetc:
|
||||||
jsr setcursor
|
jsr setcursor
|
||||||
|
lda #12
|
||||||
|
sta ICAX1Z ; fix problems with direct call to KEYBDV
|
||||||
|
.if .not .defined(__ATARIXL__)
|
||||||
jsr @1
|
jsr @1
|
||||||
|
.else
|
||||||
|
jsr KEYBDV_wrapper
|
||||||
|
.endif
|
||||||
ldx #0
|
ldx #0
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@1: lda KEYBDV+5
|
.if .not .defined(__ATARIXL__)
|
||||||
|
@1: lda KEYBDV+5
|
||||||
pha
|
pha
|
||||||
lda KEYBDV+4
|
lda KEYBDV+4
|
||||||
pha
|
pha
|
||||||
lda #12
|
rts
|
||||||
sta ICAX1Z ; fix problems with direct call to KEYBDV
|
.endif
|
||||||
rts
|
|
||||||
|
|
||||||
|
|
||||||
.proc setcursor
|
.proc setcursor
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user