[Oberon] Compiler Construction on projectoberon.net
Chris Burrows
cfbsoftware at gmail.com
Mon Mar 28 00:56:02 CEST 2022
On Sun, Mar 27, 2022 at 11:18 PM Joerg <joerg.straube at iaeth.ch> wrote:
> John
>
> there is indeed an error in chapter 9.5 of the pdf you linked.
>
> If you read bullet 3 in the intro to chapter 9.5 a distinction of adr>= 0
> and adr<0 is mentioned for the memory mapped IO. But as mentioned in the
> intro, memory mapped IO is not implemented. For a fully working emulator
> you will need this IF adr>=0 and IF adr<0.
> But for this reduced mini emulator code in chapter 9.5, this IF is wrong
> (most probably a leftover of the full code). Take the sample code Chris
> provided.
>
> br
> Jörg
>
Thanks Jörg.
The complete sample code that I was referring to is the file RISC.Mod on
Prof Wirth's site:
http://people.inf.ethz.ch/wirth/CompilerConstruction/index.html
The sample code that I quoted from the book was mistakenly taken from the
earlier (2013) revision of the book that I have on my computer rather than
the updated (2017) version on the website. I apologise for any confusion,
--
Regards,
Chris Burrows
CFB Software
https://www.astrobe.com/RISC5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20220328/592a14fe/attachment.html>
More information about the Oberon
mailing list