mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-05 17:32:02 +00:00
Load EDASM generated REL files and link them in
This commit is contained in:
parent
821dd14649
commit
e48d3cc112
@ -823,7 +823,7 @@ def loadmod(mod)#1
|
||||
memcpy(@header, heap, 128)
|
||||
modsize = header:0
|
||||
moddep = @header.1
|
||||
defofst = modsize
|
||||
defofst = modsize + MODADDR
|
||||
init = 0
|
||||
if rdlen > 4 and heap=>2 == $DA7F // DAVE+1 = magic number :-)
|
||||
//
|
||||
@ -854,8 +854,6 @@ def loadmod(mod)#1
|
||||
// Re-read file
|
||||
//
|
||||
readfile(@filename, heap)
|
||||
else
|
||||
return -69
|
||||
fin
|
||||
//
|
||||
// Alloc heap space for relocated module (data + bytecode).
|
||||
|
@ -954,7 +954,7 @@ def loadmod(mod)#1
|
||||
rdlen = read(refnum, @header, 128)
|
||||
modsize = header:0
|
||||
moddep = @header.1
|
||||
defofst = modsize
|
||||
defofst = modsize + MODADDR
|
||||
init = 0
|
||||
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
||||
//
|
||||
@ -991,8 +991,6 @@ def loadmod(mod)#1
|
||||
refnum = open(@filename, iobuffer)
|
||||
rdlen = read(refnum, @header, 128)
|
||||
fin
|
||||
else
|
||||
return -69
|
||||
fin
|
||||
//
|
||||
// Alloc heap space for relocated module (data + bytecode).
|
||||
|
@ -983,9 +983,9 @@ def loadmod(mod)#1
|
||||
if refnum > 0
|
||||
rdlen = read(refnum, @header, 128)
|
||||
modsize = header:0
|
||||
//moddep = @header.1
|
||||
//defofst = modsize
|
||||
//init = 0
|
||||
moddep = @header.1
|
||||
defofst = modsize + MODADDR
|
||||
init = 0
|
||||
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
||||
//
|
||||
// This is an EXTended RELocatable (data+bytecode) module.
|
||||
@ -1023,8 +1023,6 @@ def loadmod(mod)#1
|
||||
refnum = open(@filename)
|
||||
rdlen = read(refnum, @header, 128)
|
||||
fin
|
||||
else
|
||||
return -69
|
||||
fin
|
||||
//
|
||||
// Alloc heap space for relocated module (data + bytecode).
|
||||
|
Loading…
Reference in New Issue
Block a user