mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-22 08:31:36 +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)
|
memcpy(@header, heap, 128)
|
||||||
modsize = header:0
|
modsize = header:0
|
||||||
moddep = @header.1
|
moddep = @header.1
|
||||||
defofst = modsize
|
defofst = modsize + MODADDR
|
||||||
init = 0
|
init = 0
|
||||||
if rdlen > 4 and heap=>2 == $DA7F // DAVE+1 = magic number :-)
|
if rdlen > 4 and heap=>2 == $DA7F // DAVE+1 = magic number :-)
|
||||||
//
|
//
|
||||||
@ -854,8 +854,6 @@ def loadmod(mod)#1
|
|||||||
// Re-read file
|
// Re-read file
|
||||||
//
|
//
|
||||||
readfile(@filename, heap)
|
readfile(@filename, heap)
|
||||||
else
|
|
||||||
return -69
|
|
||||||
fin
|
fin
|
||||||
//
|
//
|
||||||
// Alloc heap space for relocated module (data + bytecode).
|
// Alloc heap space for relocated module (data + bytecode).
|
||||||
|
@ -954,7 +954,7 @@ def loadmod(mod)#1
|
|||||||
rdlen = read(refnum, @header, 128)
|
rdlen = read(refnum, @header, 128)
|
||||||
modsize = header:0
|
modsize = header:0
|
||||||
moddep = @header.1
|
moddep = @header.1
|
||||||
defofst = modsize
|
defofst = modsize + MODADDR
|
||||||
init = 0
|
init = 0
|
||||||
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
||||||
//
|
//
|
||||||
@ -991,8 +991,6 @@ def loadmod(mod)#1
|
|||||||
refnum = open(@filename, iobuffer)
|
refnum = open(@filename, iobuffer)
|
||||||
rdlen = read(refnum, @header, 128)
|
rdlen = read(refnum, @header, 128)
|
||||||
fin
|
fin
|
||||||
else
|
|
||||||
return -69
|
|
||||||
fin
|
fin
|
||||||
//
|
//
|
||||||
// Alloc heap space for relocated module (data + bytecode).
|
// Alloc heap space for relocated module (data + bytecode).
|
||||||
|
@ -983,9 +983,9 @@ def loadmod(mod)#1
|
|||||||
if refnum > 0
|
if refnum > 0
|
||||||
rdlen = read(refnum, @header, 128)
|
rdlen = read(refnum, @header, 128)
|
||||||
modsize = header:0
|
modsize = header:0
|
||||||
//moddep = @header.1
|
moddep = @header.1
|
||||||
//defofst = modsize
|
defofst = modsize + MODADDR
|
||||||
//init = 0
|
init = 0
|
||||||
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
if rdlen > 4 and header:2 == $DA7F // DAVE+1 = magic number :-)
|
||||||
//
|
//
|
||||||
// This is an EXTended RELocatable (data+bytecode) module.
|
// This is an EXTended RELocatable (data+bytecode) module.
|
||||||
@ -1023,8 +1023,6 @@ def loadmod(mod)#1
|
|||||||
refnum = open(@filename)
|
refnum = open(@filename)
|
||||||
rdlen = read(refnum, @header, 128)
|
rdlen = read(refnum, @header, 128)
|
||||||
fin
|
fin
|
||||||
else
|
|
||||||
return -69
|
|
||||||
fin
|
fin
|
||||||
//
|
//
|
||||||
// Alloc heap space for relocated module (data + bytecode).
|
// Alloc heap space for relocated module (data + bytecode).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user