Made the Commodore version of exec() work in programs that are so big that they load into all of BASIC RAM.

The function won't cause an "out of memory" error.
This commit is contained in:
Greg King
2015-09-28 11:27:39 -04:00
parent 067956b808
commit 6217f8fa3a
6 changed files with 63 additions and 27 deletions

View File

@@ -20,9 +20,15 @@
.include "vic20.inc"
.endif
.export _txtptr:zp, _basbuf, _basbuf_len:zp
; exec() is written in C.
; Provide the spellings that the C compiler wants to use.
_txtptr := TXTPTR
.ifdef VARTAB
.exportzp _vartab := VARTAB
.exportzp _memsize := MEMSIZE
.endif
_basbuf := BASIC_BUF
_basbuf_len = BASIC_BUF_LEN
.exportzp _txtptr := TXTPTR
.export _basbuf := BASIC_BUF
.exportzp _basbuf_len = BASIC_BUF_LEN