mirror of
https://github.com/cc65/cc65.git
synced 2024-11-16 18:08:04 +00:00
21 lines
625 B
ArmAsm
21 lines
625 B
ArmAsm
;
|
|
; Christian Groessler, June-2016
|
|
;
|
|
; unsigned char doesclrscrafterexit (void);
|
|
;
|
|
; returns 0/1 if after program termination the screen isn't/is cleared
|
|
;
|
|
|
|
.export _doesclrscrafterexit
|
|
.import __is_cmdline_dos
|
|
.import return1
|
|
|
|
.ifdef __ATARIXL__
|
|
_doesclrscrafterexit = return1 ; the c65 runtime always clears the screen at program termination
|
|
.else
|
|
_doesclrscrafterexit:
|
|
jsr __is_cmdline_dos ; currently (unless a DOS behaving differently is popping up)
|
|
eor #$01 ; we can get by with the inverse of __is_cmdline_dos
|
|
rts
|
|
.endif
|