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

Allow SOS PLASMA to set system path

This commit is contained in:
David Schmenk 2018-01-10 10:03:23 -08:00
parent cf32a42364
commit 6213bbf3ef
3 changed files with 18 additions and 13 deletions

View File

@ -1038,6 +1038,10 @@ def execmod(modfile)#1
return -perr
end
//
// Print PLASMA version
//
prstr(@verstr); prbyte(version.1); cout('.'); prbyte(version.0); crout
//
// Get heap start.
//
heap = *freemem
@ -1068,11 +1072,6 @@ perr = 0
// Print some startup info.
//
if not ^cmdptr
prstr(@verstr)
prbyte(version.1)
cout('.')
prbyte(version.0)
crout
prstr(@freestr)
prword(availheap)
crout

View File

@ -1356,6 +1356,10 @@ def execmod(modfile)#1
return -perr
end
//
// Print PLASMA version
//
prstr("PLASMA "); prbyte(version.1); cout('.'); prbyte(version.0); crout
//
// Get heap start.
//
heap = *freemem
@ -1384,7 +1388,6 @@ else
//
// Print some startup info.
//
prstr("PLASMA "); prbyte(version.1); cout('.'); prbyte(version.0); crout
prstr("MEM FREE:$"); prword(availheap); crout
fin
perr = 0

View File

@ -1342,6 +1342,10 @@ end
//
init_cons
//
// Print PLASMA version
//
prstr("PLASMA "); prbyte(version.1); cout('.'); prbyte(version.0); crout
//
// Init 2K symbol table.
//
seg_find($00, @symtbl, @lastsym, $08, $11)
@ -1355,9 +1359,9 @@ while *syslibsym
syslibsym = syslibsym + 4
loop
//
// Set system path
// Clear system path
//
strcat(getpfx(@syspath), "SYS/"))
syspath = 0
//
// Try to load autorun.
//
@ -1371,11 +1375,6 @@ else
//
// Print some startup info.
//
prstr("PLASMA ")
prbyte(version.1)
cout('.')
prbyte(version.0)
crout
prstr("MEM:$")
prword(availheap)
crout
@ -1395,6 +1394,10 @@ while 1
is 'P'
setpfx(cmdptr)
break
is 'S'
setpfx(cmdptr)
strcat(getpfx(@syspath), "SYS/"))
break
is 'V'
volumes
break