From c7874b9f60cebee3f6ce237cebf2aa8ecfad0f36 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Tue, 7 Jun 2016 00:42:51 +0200 Subject: [PATCH] Add Atari version of of doesclrscrafterexit(). - Update documentation. - Update atari.h and apple2.h header files. - Adapt Atari test/target programs. - Fix a typo in "div" entry in funcref.sgml. --- doc/funcref.sgml | 58 ++++++++++++++++++++------------- include/apple2.h | 3 ++ include/atari.h | 13 ++++---- libsrc/atari/doesclrscr.s | 19 +++++++++++ libsrc/atari/is_cmdline_dos.s | 11 ++----- libsrc/atari/targetutil/w2cas.c | 2 +- testcode/lib/atari/defdev.c | 2 +- testcode/lib/atari/mem.c | 2 +- 8 files changed, 71 insertions(+), 39 deletions(-) create mode 100644 libsrc/atari/doesclrscr.s diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 9bd4a3595..5b529b822 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -949,27 +949,7 @@ id="malloc" name="malloc"> may still return -Many Atari DOSes which don't support command line arguments immediately clear the screen -and display their menu after a program exits. Therefore it might be difficult to read -the last messages printed by the program prior to its exit. This function can be used -to decide if a delay or wait for a key press should be executed when then program -exits. - -/* Hello World for Atari */ -#include -#include -#include -int main(void) -{ - printf("Hello World\n"); - if (! _is_cmdline_dos()) - sleep(5); - return 0; -} - @@ -2572,8 +2552,8 @@ used in presence of a prototype. / - The function is only available as fastcall function, so it may only @@ -2587,6 +2567,40 @@ ldiv +doesclrscrafterexit