]> git.sur5r.net Git - cc65/commitdiff
Added two functions that make it easier to write portable programs for Ohio Scientifi... 455/head
authorGreg King <gregdk@users.sf.net>
Mon, 26 Jun 2017 06:34:23 +0000 (02:34 -0400)
committerGreg King <gregdk@users.sf.net>
Mon, 26 Jun 2017 06:34:23 +0000 (02:34 -0400)
libsrc/osic1p/doesclrscr.s [new file with mode: 0644]
libsrc/osic1p/revers.s [new file with mode: 0644]

diff --git a/libsrc/osic1p/doesclrscr.s b/libsrc/osic1p/doesclrscr.s
new file mode 100644 (file)
index 0000000..3d15e8a
--- /dev/null
@@ -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 (file)
index 0000000..bb178f6
--- /dev/null
@@ -0,0 +1,9 @@
+;
+; 2017-06-26, Greg King
+;
+; unsigned char __fastcall__ revers (unsigned char onoff)
+;
+
+        .import         return0
+
+        .export         _revers := return0      ; no attribute