mirror of
https://github.com/cc65/cc65.git
synced 2024-09-30 08:57:49 +00:00
Merge pull request #311 from groessler/something_to_pull
Fix doesclrscrafterexit() function on atarixl target.
This commit is contained in:
commit
2c8b8d90bf
@ -7,13 +7,14 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
.export _doesclrscrafterexit
|
.export _doesclrscrafterexit
|
||||||
.import __dos_type
|
.import __is_cmdline_dos
|
||||||
.include "atari.inc"
|
.import return1
|
||||||
|
|
||||||
|
.ifdef __ATARIXL__
|
||||||
|
_doesclrscrafterexit = return1 ; the c65 runtime always clears the screen at program termination
|
||||||
|
.else
|
||||||
_doesclrscrafterexit:
|
_doesclrscrafterexit:
|
||||||
ldx #0
|
jsr __is_cmdline_dos ; currently (unless a DOS behaving differently is popping up)
|
||||||
lda __dos_type
|
eor #$01 ; we can get by with the inverse of __is_cmdline_dos
|
||||||
cmp #MAX_DOS_WITH_CMDLINE + 1
|
|
||||||
txa
|
|
||||||
rol a
|
|
||||||
rts
|
rts
|
||||||
|
.endif
|
||||||
|
@ -7,9 +7,14 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
.export __is_cmdline_dos
|
.export __is_cmdline_dos
|
||||||
.import _doesclrscrafterexit
|
.import __dos_type
|
||||||
|
.include "atari.inc"
|
||||||
|
|
||||||
__is_cmdline_dos:
|
__is_cmdline_dos:
|
||||||
jsr _doesclrscrafterexit ; currently (unless a DOS behaving differently is popping up)
|
ldx #0
|
||||||
eor #$01 ; we can get by with the inverse of _doesclrscrafterexit
|
lda __dos_type
|
||||||
|
cmp #MAX_DOS_WITH_CMDLINE + 1
|
||||||
|
txa
|
||||||
|
rol a
|
||||||
|
eor #$01
|
||||||
rts
|
rts
|
||||||
|
Loading…
Reference in New Issue
Block a user