From: Christian Groessler Date: Tue, 7 Jun 2016 13:05:00 +0000 (+0200) Subject: Use 'return0' for default 'doesclrscrafterexit()' implementation in libsrc/common. X-Git-Tag: V2.16~112^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5705d0b55b433f4147b4efaeada23debb1a51e4d;p=cc65 Use 'return0' for default 'doesclrscrafterexit()' implementation in libsrc/common. Fix include/atari.h formatting. --- diff --git a/include/atari.h b/include/atari.h index eedd814e0..fa99fca20 100644 --- a/include/atari.h +++ b/include/atari.h @@ -161,12 +161,12 @@ extern void __fastcall__ _scroll (signed char numlines); /* numlines < 0 scrolls down */ /* misc. functions */ -extern unsigned char get_ostype(void); /* get ROM version */ -extern unsigned char get_tv(void); /* get TV system */ -extern void _save_vecs(void); /* save system vectors */ -extern void _rest_vecs(void); /* restore system vectors */ -extern char *_getdefdev(void); /* get default floppy device */ -extern unsigned char _is_cmdline_dos(void); /* does DOS support command lines */ +extern unsigned char get_ostype(void); /* get ROM version */ +extern unsigned char get_tv(void); /* get TV system */ +extern void _save_vecs(void); /* save system vectors */ +extern void _rest_vecs(void); /* restore system vectors */ +extern char *_getdefdev(void); /* get default floppy device */ +extern unsigned char _is_cmdline_dos(void); /* does DOS support command lines */ /* global variables */ extern unsigned char _dos_type; /* the DOS flavour */ diff --git a/libsrc/common/doesclrscr.s b/libsrc/common/doesclrscr.s index 71f7ab70e..49ce2fd12 100644 --- a/libsrc/common/doesclrscr.s +++ b/libsrc/common/doesclrscr.s @@ -6,9 +6,7 @@ ; returns 0/1 if after program termination the screen isn't/is cleared ; - .export _doesclrscrafterexit + .export _doesclrscrafterexit + .import return0 -_doesclrscrafterexit: - ldx #$00 - txa - rts +_doesclrscrafterexit = return0