[Oberon] Compiling the RISC system
jan at verhoeven272.nl
Sun Apr 6 14:49:55 CEST 2014
It might have been published before but here are the things I did to get
the risc machine working under Slackware 14.0:
bash-4.2$ mkdir Bld/risc
bash-4.2$ cd Bld/risc
bash-4.2$ git clone https://github.com/pdewacht/oberon-risc-emu .
cc -o risc sdl-main.c sdl-ps2.c risc.c risc-fp.c risc-sd.c pclink.c -g
-Os -Wall -Wextra -Wconversion -Wno-sign-conversion -std=c99
sdl2-config --cflags --libs -lm
/bin/sh: sdl2-config: command not found
sdl-main.c:7:17: fatal error: SDL.h: No such file or directory
sdl-ps2.c:3:17: fatal error: SDL.h: No such file or directory
make: *** [risc] Error 1
install SDL2 from source
- become su
- make install
now recompile in /Bld/risc with
Make sure RISC.img is extracted and available
And it runs with
bash-4.2$ ./risc RISC.img
I just have reformatted the C sources for an old git like I am with more
whitespace and curly braces on a line by themselves etc.
The emulator is an impressive piece of work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon