]> git.sur5r.net Git - cc65/blob - libsrc/atari/doesclrscr.s
Fix doesclrscrafterexit() function on atarixl target.
[cc65] / libsrc / atari / doesclrscr.s
1 ;
2 ; Christian Groessler, June-2016
3 ;
4 ; unsigned char doesclrscr(void);
5 ;
6 ; returns 0/1 if after program termination the screen isn't/is cleared
7 ;
8
9         .export  _doesclrscrafterexit
10         .import  __is_cmdline_dos
11         .import  return1
12
13 .ifdef __ATARIXL__
14 _doesclrscrafterexit = return1          ; the c65 runtime always clears the screen at program termination
15 .else   
16 _doesclrscrafterexit:
17         jsr     __is_cmdline_dos        ; currently (unless a DOS behaving differently is popping up)
18         eor     #$01                    ; we can get by with the inverse of __is_cmdline_dos
19         rts
20 .endif