Index of /acorn/pandora-WIP/NS32016

      Name                    Last modified      Size  Description
Parent Directory - 32016.c 2022-08-09 15:35 73K 32016.h 2022-08-09 15:35 7.1K Decode.c 2022-08-09 15:37 2.1K Decode.h 2022-08-09 15:37 2.5K Makefile 2022-08-09 15:48 384 Pandora.c 2022-08-09 15:36 82K Pandora.h 2022-08-09 15:35 5.9K Profile.h 2022-08-09 15:39 237 README.txt 2022-08-09 15:44 772 Trap.c 2022-08-09 15:35 1.2K Trap.h 2022-08-09 15:35 837 bas32.c 2022-08-09 15:35 148K bas32.h 2022-08-09 15:35 458 defs.h 2022-08-09 15:39 653 mem32016.c 2022-08-09 15:35 7.7K mem32016.h 2022-08-09 15:40 816 pandora/ 2022-08-09 15:42 - patch.diff 2022-08-09 15:35 4.4K test.bas 2022-08-09 15:42 34
A quick experiment to see if Pandora 32016 Basic can be converted to run
on any arbitrary host that has a C compiler.  It does this by having the
32016 emulator intercept all SVC calls, which are implemented by C code
embedded in the emulator.

Everything you need is in ../bas32.tar

From the NS32016 subdirectory, compile with:

   cc -g -o bas32 -DBAS32  -I.. bas32.c 32016.c Decode.c mem32016.c Pandora.c -lm

The experiment seems to have worked, so the next step is to see if it can be
repeated for PANOS relocatable image files.

Thanks to Hoglet for the emulator and help in getting this running.  This code
ought to run on both 32 and 64 bit systems.  (To compile on a 64 bit system you
*may* need to add -m64 to the command-line.)


Graham Toal