1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-10-18 22:24:28 +00:00

Could this be it?

This commit is contained in:
David Schmenk 2018-02-05 14:54:06 -08:00
parent 691f153b22
commit be5dfdba4b
5 changed files with 11 additions and 14 deletions

View File

@ -20,8 +20,6 @@ export asm except(env)
TSX
STX TMPL
LDY TMPL
LDA IPX ; APPLE 3-ISM
STA TMPH
- LDA $0100,Y
STA (SRC),Y
INY
@ -60,8 +58,6 @@ export asm throw(env, retval)
INX
BNE -
DEC DST+1
LDA TMPH ; APPLE 3-ISM
STA IPX
LDX TMPL
TXS
LDY TMPL

View File

@ -315,12 +315,13 @@ end
//
// File routines
//
def readtxt(filename)#0
def readtxt(filename, startline)#0
byte txtbuf[81], refnum, i, j
refnum = fileio:open(filename)
if refnum
fileio:newline(refnum, $7F, $0D)
numlines = startline
repeat
txtbuf = fileio:read(refnum, @txtbuf + 1, MAXLNLEN)
if txtbuf
@ -1065,16 +1066,14 @@ def cmdmode#0
cmdptr = gets($BA)
when toupper(parsecmd(cmdptr))
is 'A'
readtxt(cmdptr)
readtxt(cmdptr, numlines)
flags = flags | changed
break
is 'R'
if chkchng
inittxtbuf
numlines = 0
strstripcpy(@filename, cmdptr)
readtxt(@filename)
if numlines == 0; numlines = 1; fin
readtxt(@filename, 0)
flags = flags & ~changed
fin
break
@ -1135,8 +1134,7 @@ arg = argNext(argFirst)
if ^arg
strcpy(@filename, arg)
puts(@filename)
numlines = 0
readtxt(@filename)
readtxt(@filename, 0)
fin
curschr = '+'
flags = flags | insmode

View File

@ -386,7 +386,10 @@ def exit_err(err)#0
if err & ERR_TABLE; puts("table"); fin
if err & ERR_SYNTAX; puts("syntax"); fin
putcurln
fileio:close(0) // Close all open files
if incref
fileio:close(incref) // Close include file if open
fin
fileio:close(srcref) // Close source file
throw(exit, TRUE)
end
//

View File

@ -1433,7 +1433,7 @@ heap = *freemem
//
// Print PLASMA version
//
prstr("PLASMA Pre3 "); prbyte(version.1); cout('.'); prbyte(version.0); crout
prstr("PLASMA "); prbyte(version.1); cout('.'); prbyte(version.0); crout
//
// Init symbol table.
//

View File

@ -1441,7 +1441,7 @@ init_cons
//
// Print PLASMA version
//
prstr("PLASMA Pre4 "); prbyte(version.1); cout('.'); prbyte(version.0); crout
prstr("PLASMA "); prbyte(version.1); cout('.'); prbyte(version.0); crout
//
// Init 2K symbol table.
//