From 934a7eaed6d30f59e554cf25ce3a805ab4e501f8 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Tue, 27 May 2014 20:55:12 -0700 Subject: [PATCH] Create headers and use m4 to include them --- PLASMA/src/stdlib.plh | 16 ++++++++++++++++ PLASMA/src/testlib.plh | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 PLASMA/src/stdlib.plh create mode 100644 PLASMA/src/testlib.plh diff --git a/PLASMA/src/stdlib.plh b/PLASMA/src/stdlib.plh new file mode 100644 index 00000000..2307526b --- /dev/null +++ b/PLASMA/src/stdlib.plh @@ -0,0 +1,16 @@ +import stdlib + predef cls, gotoxy, viewport, putc, puts, getc, gets, syscall, romcall + predef heapmark, heapallocallign, heapalloc, heaprelease, heapavail + predef memset, memcpy, memxcpy + predef isugt, isuge, isult, isule + predef exec + ; + ; System flags: memory allocator screen holes. + ; + const restxt1 = $0001 + const restxt2 = $0002 + const reshgr1 = $0004 + const reshgr2 = $0008 + const resxhgr1 = $0010 + const resxhgr2 = $0020 +end diff --git a/PLASMA/src/testlib.plh b/PLASMA/src/testlib.plh new file mode 100644 index 00000000..a2e244ad --- /dev/null +++ b/PLASMA/src/testlib.plh @@ -0,0 +1,9 @@ +import testlib + predef puti, putln + word print + const dec = 0 + const hex = 2 + const newln = 4 + const str = 6 + const char = 8 +end