[Oberon] Standalone BootLoader format
thomas.kral at email.cz
Thu May 14 16:30:45 CEST 2020
On Thu, 14 May 2020 15:59:32 +0200
JR <joerg.straube at iaeth.ch> wrote:
> Are you sure, Close() is a good place to initialize SB?
It is not, perhaps Open() would be better?
But at that stage, appropriate value
for SB is not know yet. It is known when the code size is known, i.e.
after compilation, when pc = code size.
Currently I deposit it as the last instruction, but I write it to the
file as the very first. (does not affect execution in RISC.Mod)
> Files.WriteInt(R, code[pc-1]); DEC(pc);
> i := 0; REPEAT Files.WriteInt(R, code[i]); INC(i)
> UNTIL i = pc; Files.Register(F);
Now thinking about putting it in Open(), or Header()
Then would need somehow to fixup the SB value in the instruction field,
Not sure, am I close?
Tomas Kral <thomas.kral at email.cz>
More information about the Oberon