Module aliases - what is the correct way to handle them
ADDENDUM: Accidentally posted an old set of modules. Below is the current one from http://github.com/andreaspirklbauer/Oberon-test-module-aliases Any input is welcome! Current favourite is ORB6.Mod . -ap ——————————————————————————————————————————————— ORB0.Mod (= current FPGA Oberon version; only tests obj.name against name) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj.name # name) DO obj1 := obj; obj := obj1.next END ; ORB1.Mod (tests obj.name against name and obj.orgname against orgname separately) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj.name # name) DO obj1 := obj; obj := obj1.next END ; IF obj = NIL THEN obj1 := topScope; obj := obj1.next; WHILE (obj # NIL) & (obj IS Module) & (obj(Module).orgname # orgname) DO obj1 := obj; obj := obj1.next END END ; ORB2.Mod (tests obj.name against name and obj.orgname against orgname in a single loop) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj IS Module) & (obj.name # name) & (obj(Module).orgname # orgname) DO obj1 := obj; obj := obj1.next END ; ORB3.Mod (tests only obj.orgname against orgname) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj IS Module) & (obj(Module).orgname # orgname) DO obj1 := obj; obj := obj1.next END ; ORB4.Mod (tests obj.orgname against name) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj IS Module) & (obj(Module).orgname # name) DO obj1 := obj; obj := obj1.next END ; ORB5.Mod (tests all possible combinations EXCEPT obj.orgname against name) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj IS Module) & (obj.name # name) & (obj.name # orgname) & (obj(Module).orgname # orgname) DO obj1 := obj; obj := obj1.next END ; ORB6.Mod (tests all possible combinations of obj.orgname and obj.name against orgname and name) obj1 := topScope; obj := obj1.next; (*search for module*) WHILE (obj # NIL) & (obj IS Module) & (obj.name # name) & (obj.name # orgname) & (obj(Module).orgname # orgname) & (obj(Module).orgname # name) DO obj1 := obj; obj := obj1.next END ; M.Mod ———— MODULE X; TYPE T* = RECORD END ; END X. MODULE M0; TYPE T0* = RECORD i: INTEGER END ; END M0. MODULE M1; IMPORT M0; TYPE T1* = RECORD (M0.T0) j: INTEGER END ; END M1. MODULE M2; IMPORT M1; TYPE T2* = RECORD (M1.T1) k: INTEGER END ; (*indirectly imports M0.T0*) END M2. MODULE M3; IMPORT X := M0, M2, X; TYPE T3* = RECORD (M2.T2) k: INTEGER END ; (*indirectly imports M1.T1 and M0.T0*) END M3. MODULE M4; IMPORT Y := M0, M0; (*importing a module M0 under two different names is never allowed*) END M4. MODULE M5; IMPORT Z := M0, M0 := M1; (*ORB4 allows M0 := M1, while ORB5 disallows it*) END M5. ———————————————————————————————————————————————— ORP.Compile @/s ~ # compile the above module sequence with several different versions of ORB ORP.Compile ORB0.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> catches the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> does not catch an "invalid import order" error in M5 ORP.Compile ORB1.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> catches the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> does not catch an "invalid import order" error in M5 ORP.Compile ORB2.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> catches the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> does not catch an "invalid import order" error in M5 ORP.Compile ORB3.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> does NOT catch the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> does not catch an "invalid import order" error in M5 ORP.Compile ORB4.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> does NOT catch the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> catches the "invalid import order" error in M5 ORP.Compile ORB5.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> catches the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> does not catch an "invalid import order" error in M5 ORP.Compile ORB6.Mod/s ~ System.Free ORP ORG ORB ~ now recompile M3, M4, M5 -> catches the "invalid import order" error in M3 -> catches the "invalid import order" error in M4 -> catches the "invalid import order" error in M5 # error message intentional here!
I would like to start using the Oberon emulator under Windows. The website says "There's a pre-compiled version in Github's Releases section", but there is no web link to follow. https://github.com/pdewacht/oberon-risc-emu What am I missing? Thank you, Wojtek
Hi Wojtek,
...the Oberon emulator under Windows website says "There's a pre-compiled version in Github's Releases
i.e. where it says "1 Release" at the top of the github page. Links to https://github.com/pdewacht/oberon-risc-emu/releases HTH Paul
Paul: thank you! I downloaded and installed the emulator with both the 2016 original provided by Peter, and with Andreas files from his website downloaded today. It turns out that Peter's image extension is .dsk, while Andreas is .img. Took me a while to reconcile. It would be nice to use the same extension. I started a project to clean up the Oberon sources in order to factor out the verbatim constants like "4", "12", "-60", etc. I am not sure how far I can go with the cleanup and whether the community is interested in this kind of improvement at all. Since Oberon FPGA boards are all gone from the market, this emulator is providing the only development base until new FPGA boards eventually appear. It is both bad and good. Bad because it would make sense to actually run the system on a board. Good because the emulator cost compares quite favorably with a cost of the eventual board. Thank you, Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Paul Reed [paulreed@paddedcell.com] Sent: Monday, February 10, 2020 2:07 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon System emulator for Windows Hi Wojtek,
...the Oberon emulator under Windows website says "There's a pre-compiled version in Github's Releases
i.e. where it says "1 Release" at the top of the github page. Links to https://github.com/pdewacht/oberon-risc-emu HTH Paul --
I have a small bunch of the emulator questions. 1. Is it possible to change the colors from white-on-grey to white-on-black, or the reverse black-on-white? 2. Is a color display available with at least a few colors like red, green, blue in order to mark the text with colors? 3. Are the official Text and Mod file formats pure ASCII as it is the case under the FPGA Oberon? Are the Oberon Text supported with fonts and colors? Concerning #1 and #2, I am not willing to dive into recompiling the emulator whose documentation is quite clearly discouraging this kind of endeavor. I only wonder what is available. I would like to use the emulator as a tool and I am wondering whether it can be brought a bit towards the old V4 where I could use colors and fonts, and whose display was quite legible. Thank you, Wojtek
Two observations. 1. I tried the emulator under Windowes 7 and Windows 10. It runs under both. The emulator does not run under Windows XP. It is a pity because both the ETH Oberon and Linz V4 run very well under XP. 2. The fonts are so tiny that I can barely see anything on my Acer Aspire E15 laptop. I wonder if it is possible to remap the fonts or do I have to do it manually in all the files? White on grey puts such stress on my eyes that I would like to switch to a BW color scheme if it is possible. Thank you, Wojtek
Hi Wojtek,
1. Is it possible to change the colors from white-on-grey to white-on-black, or the reverse black-on-white?
src/sdl-main.c contains some commented-out lines with different colour schemes. For building from source, this gist is very helpful for installing MSYS2 and an SDL2 environment from scratch on Windows: https://gist.github.com/thales17/fb2e4cff60890a51d9dddd4c6e832ad2 Just be careful to decide whether you want a 32-bit ("i686") or 64-bit ("x86_64") environment and build, and then be consistent, e.g. with the packages. Try building the SDL2 "Hello World" in the gist to check everything is working. Once the MSYS2 and SDL2 build environment is working, you should be able to go ahead and git clone the emulator source and build it with make. (For standalone use, you will need to copy the SDL2.dll out of the msys directory tree and put it in the same directory as the built exe you copied out.) I just successfully built a white-on-black version following the above. HTH, Paul
Hello Wojtek, Am 11.02.2020 um 00:54 schrieb Skulski, Wojciech:
1. Is it possible to change the colors from white-on-grey to white-on-black, or the reverse black-on-white?
Not except patching the source code <https://github.com/pdewacht/oberon-risc-emu/blob/079038a24feb6dd26d7193df9f916dcccd8eb055/src/sdl-main.c#L21> and recompiling.
2. Is a color display available with at least a few colors like red, green, blue in order to mark the text with colors?
Peter's emulator only offers monochrome mode. My fork of the emulator (available at <https://github.com/schierlm/oberon-risc-emu-enhanced/releases>) also supports a 16-color mode if you start it with the --color switch. That will require a different Display.Mod file, though. https://github.com/schierlm/oberon-risc-emu-enhanced/blob/master/Mods/Displa... So start in black&white mode, compile the Mod file, and restart in color mode. Take a backup of your disk image before doing so, just in case. The 16 color palette can be tweaked from within the system by writing 16 words (RGBA color) starting at address -128. So you could make your system look like this if you prefer: http://schierlm.github.io/OberonEmulator/emu.html?image=ColorDiskImage (The black&white color palette is still hardcoded, as it is quite readable for me.)
3. Are the official Text and Mod file formats pure ASCII as it is the case under the FPGA Oberon? Are the Oberon Text supported with fonts and colors?
When loading a file that starts with 0F1X, it will be loaded as Oberon text, other files will be loaded as ASCII text. <https://schierlm.github.io/OberonXref/ProjectOberon2013/Texts.html#L_115-120> When saving a file, it will be saved as Oberon text. <https://schierlm.github.io/OberonXref/ProjectOberon2013/Texts.html#L_164>
Two observations.
1. I tried the emulator under Windowes 7 and Windows 10. It runs under both. The emulator does not run under Windows XP. It is a pity because both the ETH Oberon and Linz V4 run very well under XP.
This requirement is "interesting" in times where compilers and linkers start removing support for Vista and Windows 7. On the other hand, the version of MinGW I used to compile my fork does still support Windows XP. And if you set the environment variable SDL_VIDEODRIVER=dummy it even starts (yet is not very usable without display). So the culprit is the SDL library (DLL). And indeed, when replacing the SDL library by the one from <https://www.libsdl.org/release/SDL2-2.0.10-win32-x86.zip>, my fork of the emulator starts on XP as well (Did not try with Peter's build, may work there as well).
2. The fonts are so tiny that I can barely see anything on my Acer Aspire E15 laptop. I wonder if it is possible to remap the fonts or do I have to do it manually in all the files?
Peter's emulator (starting from October 2017, <https://github.com/pdewacht/oberon-risc-emu/commit/7217b49551999d016bdabee1922edd87de9fa9ed>) supports a "--zoom 2" switch to scale the display to 2x. Unfortunately the provided release binary is older. But my fork is newer and so has the switch as well :) Another (more hacky) option would be to rename another larger font to Oberon10.Scn.Fnt. As TextFrames uses this font to determine the line height, remapping all the text to a larger font would result in overlapping lines (and would not solve the menu headers still being unreadable on HiDPI displays). Regards, Michael
Michael: thanks a lot! This is great! So now I have a couple options. Fantastic. Your emulator is closer to the Extended Oberon System development system than the BlackBox emulator. I am glad that there is color because it is a great way of marking the areas to be worked upon. My first pass through all the Oberon sources consisted of highlighting all these strange numbers like "12", "24", or the hex memory constants. I started to discern the coding patterns about half way through the system. Then I could mark the proposed modifications, still without changing anything. Finally, I could substitute the hard coded numbers with symbolic names. All of this would be impossible for me without being able to highlight the problem areas with colors. I feel more optimistic now than I felt a couple hours ago! Thanks a lot! Wojtek PS: Using XP should not be that strange when trying to resuscitate the Oberon software from 30 years ago.
Michael: I followed your advice, downloaded SDL for the 32 bit windows, and started your emulator on XP. It works! The zoom by two is larger than the monitor space, so I had to kill it. I will buy stronger reading glasses... Have not tried color yet. What is the difference between risc and riscw? I tried both and they are both running the same. Thank you! W
Am 12.02.2020 um 04:29 schrieb Skulski, Wojciech:
Michael:
I followed your advice, downloaded SDL for the 32 bit windows, and started your emulator on XP. It works!
The zoom by two is larger than the monitor space, so I had to kill it. I will buy stronger reading glasses...
You might combine the --zoom with a smaller --size (if it is not too much smaller). 800x600 (so double 1600x1200) should be the bare minimum.
What is the difference between risc and riscw? I tried both and they are both running the same.
Same as qemu vs. qemuw, perl vs. perlw, java vs. javaw. They use different subsystem flags in the EXE file header. - When you launch risc from a console window, it will capture the console, so console output will go to that console and the prompt will not return while the emulator is running. riscw will, in this scenario, not capture the console and the prompt will return immediately. - When you launch risc from the GUI, a new console window will be allocated for it; riscw will not have any console window. As a consequence, any output or errors that is written by riscw (either the emulator or the SDL subsystem) to the console will be lost. But the number of console windows on your screen is greatly reduced. So I'd suggest to use "risc" with initial experiments with command line options, and when you know what you need and don't need the output any more, use "riscw" instead. Unix based systems (like Linux or OSX) don't have this distinction. When an application is started from a terminal, stdout will go to the terminal. When it is started from the GUI, stdout will be lost. You can have the same behaviour by always calling "risc" from a console window and "riscw" from the GUI. Regards, Michael
Hi Michael, Wojtek, Thank you very much for your comments. Using the same convention, I've built standard 64-bit windowed and windowed with console exe versions of the emulator using MSYS2, and put them on projectoberon.com as an extra zip to the original RISCW32 zip download. I modified my makefile to make both versions, adding the -mconsole compiler option for the console version. I also added the volatile keyword to the screen colours in sdl-main.c so that once built the exes can be edited with a hex editor. I include the extras.txt readme (with the current offsets) and the git diff below for convenience. I think the old 32-bit exe/dll pair is worth keeping around as I'm pretty sure I've tested it long ago on Windows Insecure (aka XP). Cheers, Paul extras.txt 64-bit exe files supplement for RISCW32 --------------------------------------- paulreed@paddedcell.com, 14.2.2020 riscw.exe is a 64-bit Windows MSYS2 compilation of oberon-risc-emu risc.exe is a 64-bit Windows console MSYS2 compilation of oberon-risc-emu SDL2.dll is a 64-bit version of the Simple DirectMedia Layer library. If you wish to use these with RISCW32, you may wish to create a 32-bit sub-folder and save the old 32-bit risc.exe and SDL2.dll in it. Use risc.exe if you are not running under MSYS2 and you wish to see console output, such as usage, LEDs, asserts etc. Use riscw.exe if you are launching the emulator from an icon/shortcut and you do not wish to create a console window. The following file offsets contain RGB DWORDs for editing the screen colours: 0x9FE0 (WHITE), default 0xfdf6e3 0x9FE4 (BLACK), default 0x657b83 diff --git a/Makefile b/Makefile index cf70b68..77c82dd 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,12 @@ RISC_SOURCE = \ src/raw-serial.c src/raw-serial.h \ src/sdl-clipboard.c src/sdl-clipboard.h +all: risc riscw + risc: $(RISC_SOURCE) + $(CC) -o $@ $(filter %.c, $^) $(RISC_CFLAGS) -mconsole + +riscw: $(RISC_SOURCE) $(CC) -o $@ $(filter %.c, $^) $(RISC_CFLAGS) # Assumes SDL2 framework download, following README instructions for install. @@ -22,4 +27,4 @@ osx: $(RISC_SOURCE) -I /Library/Frameworks/SDL2.framework/Headers/ clean: - rm -f risc + rm -f risc riscw diff --git a/src/sdl-main.c b/src/sdl-main.c index b82b291..f6cf5df 100644 --- a/src/sdl-main.c +++ b/src/sdl-main.c @@ -18,7 +18,7 @@ #define CPU_HZ 25000000 #define FPS 60 -static uint32_t BLACK = 0x657b83, WHITE = 0xfdf6e3; +static volatile uint32_t BLACK = 0x657b83, WHITE = 0xfdf6e3; //static uint32_t BLACK = 0x000000, WHITE = 0xFFFFFF; //static uint32_t BLACK = 0x0000FF, WHITE = 0xFFFF00;
...It turns out that Peter's image extension is .dsk, while Andreas is .img.
Note that the emulator handles different formats - an entire disk image including a defensive FAT partition (I've written about this before) and just an Oberon filesystem image, starting with sector 29 from the Oberon filesystem (29 is the first sector: as usual see the Project Oberon book). You can use any extension you like - I tend to use .FS for filesystem images, and .dsk, .img or whatever an emulator demands for disk images. Certainly, in the world of virtualisation in general, there seems to be absolutely no standardisation on file extensions. What's more of a pain is when an application insists on one, which thankfully the emulator doesn't. Windows XP? Cool! What's your IP - oh nevermind I'm in. ;-) Seriously, most development tools no longer support Windows XP for a whole host of reasons so it might be quite hard to build a version without a lot of work. Does the build from projectoberon.com work (link "Windows")? I built this some time ago using Cygwin (I don't remember it being particularly hard to do). (This also contains Windows batch file versions of pcsend and pcreceive which you might also want.) HTH, Paul
On Tue, 11 Feb 2020 at 00:15, Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
Since Oberon FPGA boards are all gone from the market, this emulator is providing the only development base until new FPGA boards eventually appear. It is both bad and good. Bad because it would make sense to actually run the system on a board. Good because the emulator cost compares quite favorably with a cost of the eventual board.
Although I wrote about them on the Register, the emulators and FPGA are not my main interest. (I'd like to get it running natively on Raspberry Pi.) But would it be worth investigating if it might be possible to adapt the softcore to one of the mass-market FPGA hobbyist machines? That might be easier. Examples: • MiST -- https://amigastore.eu/en/358-mist-midi-fpga-computer-with-midi-add-on.html • Its successor, MiSTer -- https://github.com/MiSTer-devel/Main_MiSTer/wiki • ZX-Uno -- http://zxuno.speccy.org/index_e.shtml -- Liam Proven - Profile: https://about.me/liamproven Email: lproven@cix.co.uk - Google Mail/Hangouts/Plus: lproven@gmail.com Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
Liam Proven [lproven@gmail.com] wrote Tuesday, February 11, 2020 11:37 AM
(I'd like to get it running natively on Raspberry Pi.)
Which one? I do not know the RPi processor, but I know the BeagleBone one which is a bit simpler than the recent Rpi. Its TRM is over six thousand pages. Are you sure it is a realistic battle to fight for an small army consisting of one soldier? Since we developed our boards using ARM AM3358, (see www.FemtoDAQ.com for an example), I have a bit of experience. These ARM boards can be a hobby if you run a prepackaged examples, or slight modifications thereof. The progress is quick if you run simple Python for doing simple things, mostly following existing examples. If you want to achieve anything substantial then you are talking of many months of full time professional effort. Hobby is not enough despite intense propaganda.
But would it be worth investigating if it might be possible to adapt the softcore to one of the mass-market FPGA hobbyist machines? That might be easier.
Examples: • MiST -- https://amigastore.eu/en/358-mist-midi-fpga-computer-with-midi-add-on.html It has SDRAM, whose firmware is complicated. You will need caching. A simple CPU w/a cache will be marginal with SDRAM. • Its successor, MiSTer -- https://github.com/MiSTer-devel/Main_MiSTer/wiki It is based on a Zynq-like SoC, which has those ARM chips in silicon whose description takes thousands of pages. This board is meant to run Linux. It is not a simple hobby at all. • ZX-Uno -- http://zxuno.speccy.org/maquina_e.shtml Not enough RAM. There must be other similar boards, including the ones discussed on this mailing list. Not much progress in porting, though. I think I know why. The porting effort is substantial and the motivation for such a project is not clear. In general, if you are looking at spending half a year of effort then the cost of the HW is pretty insubstantial. The attractiveness of a board should not consist of a low price and nothing else. There needs to be a match between the HW and the SW. I do not think these boards meet the needs of the Oberon System. Wojtek
On Tue, 11 Feb 2020 at 18:55, Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
Which one? I do not know the RPi processor, but I know the BeagleBone one which is a bit simpler than the recent Rpi. Its TRM is over six thousand pages. Are you sure it is a realistic battle to fight for an small army consisting of one soldier?
I am not at all sure, no! But there are already Oberon compilers for ARM. My thought was, Oberon itself for Raspberry Pi Zero / Zero W: https://www.raspberrypi.org/products/raspberry-pi-zero/ That's ARMv6 If that was successful, to target A2 to the RasPi 3/3+ -- they have quad-core ARMv8 chips and very similar hardware. The 3B+ is clocked a little faster, that's about all. But as they are multi-core, Native Oberon can't handle all the cores. A2 could. I do not expect full support for the VideoCore GPU -- the drivers are only available as a proprietary Linux BLOB. A bootloader is not necessary as the GPU does that for you. The core needs are USB and networking support. Some of this exists already inside ETH but I think they are too busy to release it. :-( There are already multiple FOSS OSes for this OS, so there is code out there to study. The boards already run: * Linux (obviously) * FreeBSD * NetBSD * Plan 9 * Acorn RISC OS * Ultibo (an Object Pascal compiled environment) Ultibo does not yet support the RasPi 4 so I was hoping to ignore that for now.
• MiST -- https://amigastore.eu/en/358-mist-midi-fpga-computer-with-midi-add-on.html It has SDRAM, whose firmware is complicated. You will need caching. A simple CPU w/a cache will be marginal with SDRAM.
OK, but this has already been solved for its Atari ST, Amiga and so on cores, and the code could be re-used. It's FOSS.
• Its successor, MiSTer -- https://github.com/MiSTer-devel/Main_MiSTer/wiki It is based on a Zynq-like SoC, which has those ARM chips in silicon whose description takes thousands of pages. This board is meant to run Linux. It is not a simple hobby at all.
Would an Oberon machine need the ARM? I must point out that these _are_ hobbyist machines.
• ZX-Uno -- http://zxuno.speccy.org/maquina_e.shtml Not enough RAM.
OK, but then there may be comparable devices. The TBBlue, basis of the commercial ZX Spectrum Next, is also FPGA-based. The hobbyist community are emulating lots of things on these. - IBM S/360: https://www.vaxbarn.com/index.php/collection/22-360 - DEC PDP-11: https://opencores.org/projects/w11 - DEC PDP-10: http://fpgaretrocomputing.org/pdp10x/ - DEC PDP-8: https://jeelabs.org/2016/10/pdp-8/l--df32-disk-on-fpga/ There is a lot of activity on this front. -- Liam Proven - Profile: https://about.me/liamproven Email: lproven@cix.co.uk - Google Mail/Hangouts/Plus: lproven@gmail.com Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
Hello Wojtek, There is also an emulator of Project Oberon written in BlackBox Component Builder. It is not as completed as Peter de Wachter's one but worthy of study because it is written in Oberon-2. I thought it was already mention in the list, but in case you missed it I post here the links. https://oberoncore.ru/bbcc/subs/start https://oberoncore.ru/bbcc/subs/po/start https://github.com/aixp/ProjectOberon-BlackBox Regards, Pablo Cayuela On Mon, Feb 10, 2020 at 3:59 PM Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
I would like to start using the Oberon emulator under Windows. The website says "There's a pre-compiled version in Github's Releases section", but there is no web link to follow.
https://github.com/pdewacht/oberon-risc-emu
What am I missing?
Thank you, Wojtek
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Pablo: this is a great news! I started a sweep over the entire Oberon System in order to make it portable to my future FPGA boards. Step 1 was to weed out all the strange memory locations like "12", "24", "-60", etc. Negative locations are used to interface the modules with hardware, while the small positive locations interface the modules with the boot loader and among themselves. The verbatim addresses are scattered all over the code. Porting the code would involve changing the numbers in many places, which may cause inconsistencies among the modules. So I gathered all the literal constants in a single module named SysDef.Mod. It is attached. I have all the sources with this module imported and the changes already implemented. I was now looking for a way to compile this version of the System, which I have not done yet. I did this work under BlackBox, because BlackBox is a great way of formatting the source. But this has created a major incompatibility between the source editor and the compiler running under the emulator. I was thinking what to do next. Like for example continuing the project under Linz V4 with the RISC5 compiler. The anonymous expert on this mailing coached me through these numbers. His help was essential. There are certain modifications to the compiler which enable importing SysDef.Mod by the standalone MODULE*. These modifications will allow to use a consistent set of definitions across both the boot loader and the actual System. Doing this is paramount for a board developer, though it has no bearing on emulated environments. I hope nobody will feel uneasy looking at the attached file... It looks quite different from the officially adopted Oberon coding style. Thank you again for the great news! Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Pablo Cayuela [pablo.cayuela@gmail.com] Sent: Tuesday, February 11, 2020 7:19 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon System emulator for Windows Hello Wojtek, There is also an emulator of Project Oberon written in BlackBox Component Builder. It is not as completed as Peter de Wachter's one but worthy of study because it is written in Oberon-2. I thought it was already mention in the list, but in case you missed it I post here the links. https://oberoncore.ru/bbcc/subs/start https://oberoncore.ru/bbcc/subs/po/start https://github.com/aixp/ProjectOberon-BlackBox Regards, Pablo Cayuela On Mon, Feb 10, 2020 at 3:59 PM Skulski, Wojciech <skulski@pas.rochester.edu<mailto:skulski@pas.rochester.edu>> wrote: I would like to start using the Oberon emulator under Windows. The website says "There's a pre-compiled version in Github's Releases section", but there is no web link to follow. https://github.com/pdewacht/oberon-risc-emu<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pdewacht_oberon-2Drisc-2Demu&d=DwMFaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=DECRuN-jg8xUM6gmwAU0TFNLrgczySdPIZeVRoW6D2U&s=UjYHU9hFohCMaHN-DStlIfbVUf7JPJxjnvjnqzV4BIM&e=> What am I missing? Thank you, Wojtek -- Oberon@lists.inf.ethz.ch<mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.inf.ethz.ch_mailman_listinfo_oberon&d=DwMFaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=DECRuN-jg8xUM6gmwAU0TFNLrgczySdPIZeVRoW6D2U&s=fddjPvue0AaSV1L4PSNo63ymAFG57v_USUBDoxxmJOc&e=>
Dear Wojtek, I'm glad for the great news! I'm wondering about the anonymous contribution... I see that you are collecting all sparse const declarations all over the modules and put it on an exportable definition module. I think it is a great work that you're doing for clarity and for classes, because I struggle with that kind of things too when using these and other examples with my students. Even is hard for my to understand and I can't explain too many parts of the code. Best regards, Prof. Pablo Cayuela On Wed, Feb 12, 2020 at 5:24 AM Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
Pablo:
this is a great news! I started a sweep over the entire Oberon System in order to make it portable to my future FPGA boards. Step 1 was to weed out all the strange memory locations like "12", "24", "-60", etc. Negative locations are used to interface the modules with hardware, while the small positive locations interface the modules with the boot loader and among themselves.
The verbatim addresses are scattered all over the code. Porting the code would involve changing the numbers in many places, which may cause inconsistencies among the modules. So I gathered all the literal constants in a single module named SysDef.Mod. It is attached. I have all the sources with this module imported and the changes already implemented. I was now looking for a way to compile this version of the System, which I have not done yet.
I did this work under BlackBox, because BlackBox is a great way of formatting the source. But this has created a major incompatibility between the source editor and the compiler running under the emulator. I was thinking what to do next. Like for example continuing the project under Linz V4 with the RISC5 compiler.
The anonymous expert on this mailing coached me through these numbers. His help was essential. There are certain modifications to the compiler which enable importing SysDef.Mod by the standalone MODULE*. These modifications will allow to use a consistent set of definitions across both the boot loader and the actual System. Doing this is paramount for a board developer, though it has no bearing on emulated environments.
I hope nobody will feel uneasy looking at the attached file... It looks quite different from the officially adopted Oberon coding style.
Thank you again for the great news!
Wojtek
Pablo: I just put all this stuff on Github. I suspect I created a mess with "pull requests", "branches", etc because I never used github before. I have no clear idea how to tame the monster. In any case, I hope that you can get these files from https://github.com/WojtekSkulski/Portable_Oberon_System/tree/Source-files-in... https://github.com/WojtekSkulski/Portable_Oberon_System/tree/Source-files-in... The ASCII folder contains both the BlackBox and ASCII. It was not my intention. I wanted to keep them separate. Also, the master is empty. I have no idea why. Please note all that I did was to factor out the basic hardware interface into one file. This is still Andreas' EOS as of Feb/03. I made no changes other than using named constants for crucial system addresses. Also note that the EOS has changed since then. I did not modify the many constants in Display or the FileDir, because these interfaces self contained. These two do not need to be factored out any further because they are already organized very well. Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Pablo Cayuela [pablo.cayuela@gmail.com] Sent: Wednesday, February 12, 2020 9:37 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon System emulator for Windows Dear Wojtek, I'm glad for the great news! I'm wondering about the anonymous contribution... I see that you are collecting all sparse const declarations all over the modules and put it on an exportable definition module. I think it is a great work that you're doing for clarity and for classes, because I struggle with that kind of things too when using these and other examples with my students. Even is hard for my to understand and I can't explain too many parts of the code. Best regards, Prof. Pablo Cayuela On Wed, Feb 12, 2020 at 5:24 AM Skulski, Wojciech <skulski@pas.rochester.edu<mailto:skulski@pas.rochester.edu>> wrote: Pablo: this is a great news! I started a sweep over the entire Oberon System in order to make it portable to my future FPGA boards. Step 1 was to weed out all the strange memory locations like "12", "24", "-60", etc. Negative locations are used to interface the modules with hardware, while the small positive locations interface the modules with the boot loader and among themselves. The verbatim addresses are scattered all over the code. Porting the code would involve changing the numbers in many places, which may cause inconsistencies among the modules. So I gathered all the literal constants in a single module named SysDef.Mod. It is attached. I have all the sources with this module imported and the changes already implemented. I was now looking for a way to compile this version of the System, which I have not done yet. I did this work under BlackBox, because BlackBox is a great way of formatting the source. But this has created a major incompatibility between the source editor and the compiler running under the emulator. I was thinking what to do next. Like for example continuing the project under Linz V4 with the RISC5 compiler. The anonymous expert on this mailing coached me through these numbers. His help was essential. There are certain modifications to the compiler which enable importing SysDef.Mod by the standalone MODULE*. These modifications will allow to use a consistent set of definitions across both the boot loader and the actual System. Doing this is paramount for a board developer, though it has no bearing on emulated environments. I hope nobody will feel uneasy looking at the attached file... It looks quite different from the officially adopted Oberon coding style. Thank you again for the great news! Wojtek
I'm writing a linux kernel filesystem driver for Project Oberon disk images and I'm wondering how best to interpret the Date field in the FileDesc record. It looks to me like the Files module just puts the latest Kernel.Clock() value in there when the file is written. System.Mod sets the date value like this: dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*64 + sec; It looks to me like the above formula leaves 6 bits for the year, which means it ranges from 0 to 63. Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either. I'm just wondering if historically that year value that goes in a file header has a base year or other meaning. Without something like that the maximum year is "63" which is a long time ago! I'd like to put something meaningful in this field when I move files in and out of Linux. Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033? Am I over-thinking this? Chuck
Firstly, I wrote a RealTimeClock background task for ProjectOberon that increments Kernel.clock based on Kernel.timer. My SW accuracy is almost as high as a HW RTC. Secondly, here are two approaches to fix this 63 years restriction of the current implementation a) 100 years are less than 2^32 seconds, so we can fit them in 32 bits but we cant use powers of 2 anymore to split the fields. b) use a granularity of 2 seconds for clock iso 1 second. Then you get 1 bit more for the year and you can code the year from 00..99 I did not make up my mind whether a) or b) is better, or we should just live with the restriction and set the base year to eg 2010. Then the problem only appears in 2073. Jörg
Am 13.02.2020 um 20:36 schrieb Charles Perkins <chuck@kuracali.com>:
I'm writing a linux kernel filesystem driver for Project Oberon disk images and I'm wondering how best to interpret the Date field in the FileDesc record.
It looks to me like the Files module just puts the latest Kernel.Clock() value in there when the file is written.
System.Mod sets the date value like this: dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*64 + sec;
It looks to me like the above formula leaves 6 bits for the year, which means it ranges from 0 to 63.
Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either.
I'm just wondering if historically that year value that goes in a file header has a base year or other meaning. Without something like that the maximum year is "63" which is a long time ago!
I'd like to put something meaningful in this field when I move files in and out of Linux.
Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033?
Am I over-thinking this?
Chuck
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi again For a) I would use the following formula: dt := ((((yr*12 + mo)*24 + hr)*32 + day)*64 + min)*64 + sec; (* the higher 15 bits encode yr, mo and hr the lower 17 bits encode day, min and sec *) For b) I would use the following formula dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*32 + sec DIV 2; br Jörg Von: Joerg <joerg.straube@iaeth.ch> Datum: Donnerstag, 13. Februar 2020 um 21:00 An: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Betreff: Re: [Oberon] File time stamps in PO2013 Firstly, I wrote a RealTimeClock background task for ProjectOberon that increments Kernel.clock based on Kernel.timer. My SW accuracy is almost as high as a HW RTC. Secondly, here are two approaches to fix this 63 years restriction of the current implementation a) 100 years are less than 2^32 seconds, so we can fit them in 32 bits but we cant use powers of 2 anymore to split the fields. b) use a granularity of 2 seconds for clock iso 1 second. Then you get 1 bit more for the year and you can code the year from 00..99 I did not make up my mind whether a) or b) is better, or we should just live with the restriction and set the base year to eg 2010. Then the problem only appears in 2073. Jörg Am 13.02.2020 um 20:36 schrieb Charles Perkins <chuck@kuracali.com>: I'm writing a linux kernel filesystem driver for Project Oberon disk images and I'm wondering how best to interpret the Date field in the FileDesc record. It looks to me like the Files module just puts the latest Kernel.Clock() value in there when the file is written. System.Mod sets the date value like this: dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*64 + sec; It looks to me like the above formula leaves 6 bits for the year, which means it ranges from 0 to 63. Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either. I'm just wondering if historically that year value that goes in a file header has a base year or other meaning. Without something like that the maximum year is "63" which is a long time ago! I'd like to put something meaningful in this field when I move files in and out of Linux. Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033? Am I over-thinking this? Chuck -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hello, Am 13.02.2020 um 20:36 schrieb Charles Perkins:
Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either.
If you want it updated from the millisecond timer (on demand when Kernel.Clock is read), you can use this patch: <https://github.com/schierlm/Oberon2013Modifications/blob/master/RealTimeClock/RealTimeClock.patch> If you are using any of my emulators, you can add this patch to get it initialized at boot time: <https://github.com/schierlm/Oberon2013Modifications/blob/master/RealTimeClock/EmulatorSupport.patch> Currenty it will initialize the year with 20 that way. You could also initialize it with 0, and gain 20 more years. I would not initialize it with 10 (when you use my code) since it will break the leap year detection (in case you ever keep the system running past midnight on the last day of February).
Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033?
I would say that is a bad choice (if you do not change the output code for System.Directory), since that output code will output the year number in a form that makes you assume it is a 2-digit year.
Am I over-thinking this?
Probably, too :) Regards, Michael
Thanks Joerg and Michael, I thought maybe I was missing something. I guess you can only do so much with 32 bits! Chuck On Thu, Feb 13, 2020 at 12:59 PM Michael Schierl <schierlm@gmx.de> wrote:
Hello,
Am 13.02.2020 um 20:36 schrieb Charles Perkins:
Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either.
If you want it updated from the millisecond timer (on demand when Kernel.Clock is read), you can use this patch:
< https://github.com/schierlm/Oberon2013Modifications/blob/master/RealTimeCloc...
If you are using any of my emulators, you can add this patch to get it initialized at boot time:
< https://github.com/schierlm/Oberon2013Modifications/blob/master/RealTimeCloc...
Currenty it will initialize the year with 20 that way. You could also initialize it with 0, and gain 20 more years. I would not initialize it with 10 (when you use my code) since it will break the leap year detection (in case you ever keep the system running past midnight on the last day of February).
Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033?
I would say that is a bad choice (if you do not change the output code for System.Directory), since that output code will output the year number in a form that makes you assume it is a 2-digit year.
Am I over-thinking this?
Probably, too :)
Regards,
Michael
The base year used in Project Oberon is 2000. That is what we also use in HCFiler and the additional RTC and FileDate facilities in Embedded Project Oberon. Refer to section 8.3 The Kernel in the 2013 Revised Edition of the Project Oberon book. Regards, Chris Burrows CFB Software https://www.astrobe.com From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Charles Perkins Sent: Friday, 14 February 2020 6:06 AM To: ETH Oberon and related systems Subject: [Oberon] File time stamps in PO2013 I'm writing a linux kernel filesystem driver for Project Oberon disk images and I'm wondering how best to interpret the Date field in the FileDesc record. It looks to me like the Files module just puts the latest Kernel.Clock() value in there when the file is written. System.Mod sets the date value like this: dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*64 + sec; It looks to me like the above formula leaves 6 bits for the year, which means it ranges from 0 to 63. Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either. I'm just wondering if historically that year value that goes in a file header has a base year or other meaning. Without something like that the maximum year is "63" which is a long time ago! I'd like to put something meaningful in this field when I move files in and out of Linux. Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033? Am I over-thinking this? Chuck
Well, it looks like we're good until 2063 then! 2000 makes more sense than 1970, and a constant is the simplest thing I can put in the kernel module so I'm going to go with that. Now I'm going to go back to parsing the extended sector table so large files come out right. Cheers, Chuck On Thu, Feb 13, 2020 at 4:52 PM Chris Burrows <chris@cfbsoftware.com> wrote:
The base year used in Project Oberon is 2000. That is what we also use in HCFiler and the additional RTC and FileDate facilities in Embedded Project Oberon. Refer to section 8.3 The Kernel in the 2013 Revised Edition of the Project Oberon book.
Regards,
Chris Burrows
CFB Software
*From:* Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] *On Behalf Of *Charles Perkins *Sent:* Friday, 14 February 2020 6:06 AM *To:* ETH Oberon and related systems *Subject:* [Oberon] File time stamps in PO2013
I'm writing a linux kernel filesystem driver for Project Oberon disk images and I'm wondering how best to interpret the Date field in the FileDesc record.
It looks to me like the Files module just puts the latest Kernel.Clock() value in there when the file is written.
System.Mod sets the date value like this:
dt := ((((yr*16 + mo)*32 + day)*32 + hr)*64 + min)*64 + sec;
It looks to me like the above formula leaves 6 bits for the year, which means it ranges from 0 to 63.
Now I know that the FPGA doesn't actually have a real time clock and I think the time is always actually zero unless you set it to something else. I don't think it gets updated from the system millisecond timer either.
I'm just wondering if historically that year value that goes in a file header has a base year or other meaning. Without something like that the maximum year is "63" which is a long time ago!
I'd like to put something meaningful in this field when I move files in and out of Linux.
Anybody have a good idea? Should I just make it based on Jan 1 1970 like Unix, in which case it rolls over in 2033?
Am I over-thinking this?
Chuck
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Wojtek
I hope nobody will feel uneasy looking at the attached file... It looks quite different from the officially adopted Oberon
Not at all. All my HW-related low level driver modules start with a bunch of CONSTs like yours ( br Jörg
I use the emulator on the Mac by Roel P. de Jong. The comfortable thing with this emulator is, that the files are directly Mac files. No disk image needed. https://apps.apple.com/us/app/oberon-workstation/id1057155516?ls=1&mt=12 Jörg Von: Oberon <oberon-bounces@lists.inf.ethz.ch> im Auftrag von Pablo Cayuela <pablo.cayuela@gmail.com> Antworten an: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Datum: Mittwoch, 12. Februar 2020 um 01:20 An: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Betreff: Re: [Oberon] Oberon System emulator for Windows Hello Wojtek, There is also an emulator of Project Oberon written in BlackBox Component Builder. It is not as completed as Peter de Wachter's one but worthy of study because it is written in Oberon-2. I thought it was already mention in the list, but in case you missed it I post here the links. https://oberoncore.ru/bbcc/subs/start https://oberoncore.ru/bbcc/subs/po/start https://github.com/aixp/ProjectOberon-BlackBox Regards, Pablo Cayuela On Mon, Feb 10, 2020 at 3:59 PM Skulski, Wojciech <skulski@pas.rochester.edu> wrote: I would like to start using the Oberon emulator under Windows. The website says "There's a pre-compiled version in Github's Releases section", but there is no web link to follow. https://github.com/pdewacht/oberon-risc-emu What am I missing? Thank you, Wojtek -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Joerg: ________________________________________
I use the emulator on the Mac by Roel P. de Jong. The comfortable thing with this emulator is, that the files are directly Mac files. No disk image needed.
This is actually my next biggest pain. I have all the EOS files which I modified in a regular Windows directory. Moving them back and forth to the disk is going to be a logistic hassle. I am trying to figure this detail out. It may sound like a detail, but in actual work it is a big pain. The BB emulator is a possible solution. Or perhaps the Roel P. de Jong emulator if it worked on Windows. Wojtek
Wojtek I wrote a module to make this file copy back and forth more comfortable. I didn't want to use the "standard" PCLink1 way of doing this. With ISO.CopyTo *.Mod you can copy all Mod files to the ISO diskimage file and with ISO.CopyFrom you can copy all files from the ISO diskimage file to single windows files. I programed this in Linz Oberon. Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Skulski, Wojciech Sent: Wednesday, February 12, 2020 2:56 PM To: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] Oberon System emulator for Windows Joerg: ________________________________________
I use the emulator on the Mac by Roel P. de Jong. The comfortable thing with this emulator is, that the files are directly Mac files. No disk image needed.
This is actually my next biggest pain. I have all the EOS files which I modified in a regular Windows directory. Moving them back and forth to the disk is going to be a logistic hassle. I am trying to figure this detail out. It may sound like a detail, but in actual work it is a big pain. The BB emulator is a possible solution. Or perhaps the Roel P. de Jong emulator if it worked on Windows. Wojtek -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Jörg, Am 12.02.2020 um 07:22 schrieb Jörg:
I use the emulator on the Mac by Roel P. de Jong. The comfortable thing with this emulator is, that the files are directly Mac files. No disk image needed.
https://apps.apple.com/us/app/oberon-workstation/id1057155516?ls=1&mt=12
You can have a similar result on Windows with my emulator fork too, if you use the --hostfs switch. You will need to change the FileDir and Files modules and (if you want to use System.Directory with the "!" flag) the List procedure in System module. Then point --hostfs to a directory and files will be read/written from there. As in Oberon you can delete files that are still open (and also create files and later assign a name to them), these files will get temporary names starting with ~ on Windows (which does not support this behaviour) and will get deleted when the emulator is started next time. Also, there might still be some race conditions that cause the emulator to crash when using hostfs, but it works well enough for me. A disk image is still needed, but only for loading the inner core from. An example disk image with a matching directory of precompiled modules is available attached to one of the older releases on the GitHub page for my emulator. Regards, Michael
Michael thx for the —hostfs switch. Jörg
Am 12.02.2020 um 21:08 schrieb Michael Schierl <schierlm@gmx.de>:
Jörg,
Am 12.02.2020 um 07:22 schrieb Jörg: I use the emulator on the Mac by Roel P. de Jong. The comfortable thing with this emulator is, that the files are directly Mac files. No disk image needed.
https://apps.apple.com/us/app/oberon-workstation/id1057155516?ls=1&mt=12
You can have a similar result on Windows with my emulator fork too, if you use the --hostfs switch. You will need to change the FileDir and Files modules and (if you want to use System.Directory with the "!" flag) the List procedure in System module. Then point --hostfs to a directory and files will be read/written from there. As in Oberon you can delete files that are still open (and also create files and later assign a name to them), these files will get temporary names starting with ~ on Windows (which does not support this behaviour) and will get deleted when the emulator is started next time. Also, there might still be some race conditions that cause the emulator to crash when using hostfs, but it works well enough for me.
A disk image is still needed, but only for loading the inner core from. An example disk image with a matching directory of precompiled modules is available attached to one of the older releases on the GitHub page for my emulator.
Regards,
Michael
participants (10)
-
Andreas Pirklbauer -
Charles Perkins -
Chris Burrows -
Joerg -
Jörg -
Liam Proven -
Michael Schierl -
Pablo Cayuela -
Paul Reed -
Skulski, Wojciech