mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-11 13:29:44 +00:00
Don't close(0) in SOS - it closes the console, too.
This commit is contained in:
parent
ac3c5164d7
commit
b81dace901
@ -21,7 +21,7 @@ byte = "| / | (_) | | (_ || |_| || _|\n"
|
|||||||
byte = "|_|_\\ \\___/ \\___| \\___/ |___|\n"
|
byte = "|_|_\\ \\___/ \\___| \\___/ |___|\n"
|
||||||
byte = "\n"
|
byte = "\n"
|
||||||
byte = " By Resman\n"
|
byte = " By Resman\n"
|
||||||
byte = " Artwork by Seth Sternberg\n"
|
byte = " Artwork by Seth Sternberger\n"
|
||||||
byte = ""
|
byte = ""
|
||||||
word titlestr = @initstr
|
word titlestr = @initstr
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ def a3newline(refnum, emask, nlchar)
|
|||||||
|
|
||||||
params.0 = 3
|
params.0 = 3
|
||||||
params.1 = refnum
|
params.1 = refnum
|
||||||
params.2 = emask
|
params.2 = $FF
|
||||||
params.3 = nlchar
|
params.3 = nlchar
|
||||||
return syscall($C9, @params)
|
return syscall($C9, @params)
|
||||||
end
|
end
|
||||||
|
@ -850,11 +850,11 @@ def allocalignheap(size, pow2, freeaddr)
|
|||||||
return addr
|
return addr
|
||||||
end
|
end
|
||||||
def markheap
|
def markheap
|
||||||
return heap//
|
return heap
|
||||||
end
|
end
|
||||||
def releaseheap(newheap)
|
def releaseheap(newheap)
|
||||||
heap = newheap//
|
heap = newheap
|
||||||
return @newheap - heap//
|
return @newheap - heap
|
||||||
end
|
end
|
||||||
//
|
//
|
||||||
// Symbol table routines.
|
// Symbol table routines.
|
||||||
@ -962,8 +962,10 @@ def loadmod(mod)
|
|||||||
//
|
//
|
||||||
while ^moddep
|
while ^moddep
|
||||||
if !lookupmod(moddep)
|
if !lookupmod(moddep)
|
||||||
close(refnum)
|
if refnum
|
||||||
refnum = 0
|
close(refnum)
|
||||||
|
refnum = 0
|
||||||
|
fin
|
||||||
if loadmod(moddep) < 0
|
if loadmod(moddep) < 0
|
||||||
return -perr
|
return -perr
|
||||||
fin
|
fin
|
||||||
@ -996,7 +998,7 @@ def loadmod(mod)
|
|||||||
//
|
//
|
||||||
// Read in remainder of module into memory for fixups.
|
// Read in remainder of module into memory for fixups.
|
||||||
//
|
//
|
||||||
addr = modaddr//
|
addr = modaddr
|
||||||
repeat
|
repeat
|
||||||
addr = addr + rdlen
|
addr = addr + rdlen
|
||||||
rdlen = read(refnum, addr, 4096)
|
rdlen = read(refnum, addr, 4096)
|
||||||
@ -1252,7 +1254,8 @@ def execmod(modfile)
|
|||||||
seg_release(modseg[modid])
|
seg_release(modseg[modid])
|
||||||
loop
|
loop
|
||||||
else
|
else
|
||||||
perr = perr & ~modkeep
|
modid = 0
|
||||||
|
perr = perr & ~(modinitkeep | modkeep)
|
||||||
fin
|
fin
|
||||||
systemflags = saveflags
|
systemflags = saveflags
|
||||||
fin
|
fin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user