From bd883327ace3f7de952a48b394a8ce6b53636595 Mon Sep 17 00:00:00 2001 From: Greg King Date: Mon, 26 Jun 2017 02:34:23 -0400 Subject: [PATCH] Added two functions that make it easier to write portable programs for Ohio Scientific computers. --- libsrc/osic1p/doesclrscr.s | 14 ++++++++++++++ libsrc/osic1p/revers.s | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 libsrc/osic1p/doesclrscr.s create mode 100644 libsrc/osic1p/revers.s diff --git a/libsrc/osic1p/doesclrscr.s b/libsrc/osic1p/doesclrscr.s new file mode 100644 index 000000000..3d15e8ade --- /dev/null +++ b/libsrc/osic1p/doesclrscr.s @@ -0,0 +1,14 @@ +; +; 2016-06, Christian Groessler +; 2017-06-26, Greg King +; +; unsigned char doesclrscrafterexit (void); +; +; Returns 0/1 if, after program termination, the screen isn't/is cleared. +; + + .import return1 + +; cc65's OSI programs return to the monitor ROM which clears the screen. + + .export _doesclrscrafterexit := return1 diff --git a/libsrc/osic1p/revers.s b/libsrc/osic1p/revers.s new file mode 100644 index 000000000..bb178f647 --- /dev/null +++ b/libsrc/osic1p/revers.s @@ -0,0 +1,9 @@ +; +; 2017-06-26, Greg King +; +; unsigned char __fastcall__ revers (unsigned char onoff) +; + + .import return0 + + .export _revers := return0 ; no attribute