From 5705d0b55b433f4147b4efaeada23debb1a51e4d Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Tue, 7 Jun 2016 15:05:00 +0200 Subject: [PATCH] Use 'return0' for default 'doesclrscrafterexit()' implementation in libsrc/common. Fix include/atari.h formatting. --- include/atari.h | 12 ++++++------ libsrc/common/doesclrscr.s | 8 +++----- 2 files changed, 9 insertions(+), 11 deletions(-) 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 -- 2.39.5