Create headers and use m4 to include them

This commit is contained in:
David Schmenk 2014-05-27 20:55:12 -07:00
parent eeffd30389
commit 934a7eaed6
2 changed files with 25 additions and 0 deletions

16
PLASMA/src/stdlib.plh Normal file
View File

@ -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

9
PLASMA/src/testlib.plh Normal file
View File

@ -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