Emulator for the Oberon RISC machine
Go to file
2014-04-03 19:53:54 +04:00
fp-test Add gitignore file and clean up a bit 2014-03-27 22:48:42 +01:00
.gitignore Add gitignore file and clean up a bit 2014-03-27 22:48:42 +01:00
Makefile Make it easy to override default sdl2-config 2014-04-02 22:21:00 +02:00
pclink.c The S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH macros are not defined on MinGW 2014-04-03 19:53:54 +04:00
pclink.h Paul Reed's implementation of the PCLink RS232 protocol 2014-03-22 23:20:15 +01:00
pcreceive.sh Add PCLink shell scripts 2014-03-31 21:24:50 +02:00
pcsend.sh Add PCLink shell scripts 2014-03-31 21:24:50 +02:00
README.md Warn about old disk images 2014-03-31 21:15:51 +02:00
risc-boot.inc Oberon RISC emulator 2014-03-15 22:34:51 +01:00
risc-fp.c Fix some bugs in the floating-point adder. 2014-03-27 21:37:43 +01:00
risc-fp.h Implement the floating instructions. 2014-03-22 22:09:49 +01:00
risc-sd.c Support filesystem-only images. 2014-03-31 21:11:15 +02:00
risc-sd.h Oberon RISC emulator 2014-03-15 22:34:51 +01:00
risc.c Move SCREEN_WIDTH/HEIGHT to risc.h file 2014-03-27 21:44:39 +01:00
risc.h Move SCREEN_WIDTH/HEIGHT to risc.h file 2014-03-27 21:44:39 +01:00
sdl-main.c Move SCREEN_WIDTH/HEIGHT to risc.h file 2014-03-27 21:44:39 +01:00
sdl-ps2.c Fix break scancode of some "grey" keys 2014-04-02 22:21:44 +02:00
sdl-ps2.h Oberon RISC emulator 2014-03-15 22:34:51 +01:00

Oberon RISC Emulator

This is an emulator for the Oberon RISC machine. For more information, see: http://www.inf.ethz.ch/personal/wirth/ and http://projectoberon.com/.

Requirements: a C99 compiler (e.g. GCC, clang) and SDL2.

A suitable disk image can be downloaded from http://projectoberon.com/ (in S3RISCinstall.zip). Warning: Images downloaded before 2014-03-29 have broken floating point.

Current emulation status

  • CPU

    • No known bugs.
  • Keyboard and mouse

    • OK. Note that Oberon assumes you have a US keyboard layout and a three button mouse.
    • The left alt key can now be used to emulate a middle click.
  • Display

    • OK. You can adjust the colors by editing sdl-main.c.
    • Use F11 to toggle full screen display.
  • SD-Card

    • Very inaccurate, but good enough for Oberon. If you're going to hack the SD card routines, you'll need to use real hardware.
  • RS-232

    • Implements PCLink protocol to send/receive single files at a time e.g. to receive Test.Mod into Oberon, run PCLink1.Start, then in host risc current directory, echo Test.Mod > PCLink.REC
    • Thanks to Paul Reed
  • Network

    • Not implemented.
  • LEDs

    • Printed on stdout.
  • Reset button

    • Press F12 to abort if you get stuck in an infinite loop.

Copyright © 2014 Peter De Wachter

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.