]> git.sur5r.net Git - cc65/blob - libsrc/atari/doesclrscr.s
c085faebf8b0057607c08a7eb35362e92f916f3d
[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  __dos_type
11         .include "atari.inc"
12
13 _doesclrscrafterexit:
14         ldx     #0
15         lda     __dos_type
16         cmp     #MAX_DOS_WITH_CMDLINE + 1
17         txa
18         rol     a
19         rts