PO2013 - Boot stage 1 from disk
Hi, Inspecting memory address 0 on a booted system.. 00000000 E70072D0 00000000 00000000 0009FEF0 00009980 00008420 00060000 00000000 EDIT branch to Modules init E70025FE at code[0] of Modules.bin and ShowModules Modules 00008420 000084E8 6 I still miss something in understanding, I though we link for address 0, expecting same values rather than E7..0072D0, and E7..0025FE, that would also fall between 00008420 000084E8 ??? -- Tomas Kral <thomas.kral@email.cz>
Did you take the last statement in System.Mod into account? Jörg Sent from Mail for Windows 10 From: Tomas Kral Sent: Sonntag, 19. Juli 2020 13:25 To: Oberon@lists.inf.ethz.ch Subject: [Oberon] PO2013 - Boot stage 1 from disk Hi, Inspecting memory address 0 on a booted system.. 00000000 E70072D0 00000000 00000000 0009FEF0 00009980 00008420 00060000 00000000 EDIT branch to Modules init E70025FE at code[0] of Modules.bin and ShowModules Modules 00008420 000084E8 6 I still miss something in understanding, I though we link for address 0, expecting same values rather than E7..0072D0, and E7..0025FE, that would also fall between 00008420 000084E8 ??? -- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Sun, 19 Jul 2020 13:57:35 +0200 Jörg Straube <joerg.straube@iaeth.ch> wrote:
Did you take the last statement in System.Mod into account? Jörg
Ah, now I see. That is ABORT installed at addr `0' with.. Kernel.Install(SYSTEM.ADR(Abort), 0); But I still miss the idea of initialising Modules. Linker deposited E70025FE branch at code [0]. But clearly Modules is loaded at address around 84xxH Modules 00008420 000084E8 6 an not 25FEH as pointed by a branch above. -- Tomas Kral <thomas.kral@email.cz>
Tomas, On So, 2020-07-19 at 16:30 +0200, Tomas Kral wrote:
But I still miss the idea of initialising Modules. Linker deposited E70025FE branch at code [0].
But clearly Modules is loaded at address around 84xxH Modules 00008420 000084E8 6
an not 25FEH as pointed by a branch above.
please note that branches are relative to the next instruction, and the branch offset is scaled by 4 (because instructions have to be word aligned). Hellwig
Tomas As Hellwig wrote: 25FE * 4 + 4 = 97FC. As on your system "Modules" starts at 84E8 this sounds reasonable. The code of module "Modules" ends, where module "Input" starts. Look at the line "Input" to see whether 97FC is smaller than the code start of "Input".. br Jörg Am 19.07.20, 16:30 schrieb "Oberon im Auftrag von Tomas Kral" <oberon-bounces@lists.inf.ethz.ch im Auftrag von thomas.kral@email.cz>: On Sun, 19 Jul 2020 13:57:35 +0200 Jörg Straube <joerg.straube@iaeth.ch> wrote: > Did you take the last statement in System.Mod into account? > Jörg Ah, now I see. That is ABORT installed at addr `0' with.. Kernel.Install(SYSTEM.ADR(Abort), 0); But I still miss the idea of initialising Modules. Linker deposited E70025FE branch at code [0]. But clearly Modules is loaded at address around 84xxH Modules 00008420 000084E8 6 an not 25FEH as pointed by a branch above. -- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Sun, 19 Jul 2020 17:27:51 +0200 Jörg <joerg.straube@iaeth.ch> wrote:
As Hellwig wrote: 25FE * 4 + 4 = 97FC. As on your system "Modules" starts at 84E8 this sounds reasonable.
Yes, now I see the point. Input 00009980 00009AF0 9 Modules 00008420 000084E8 6 8420H - Modules' start 84E8H - code section start Modules' BEGIN END comes here 9980H - Input's start -- Tomas Kral <thomas.kral@email.cz>
participants (4)
-
Hellwig Geisse -
Jörg -
Jörg Straube -
Tomas Kral