Index of /acorn/pandora-emulation

      Name                    Last modified      Size  Description
Parent Directory - 32016.c 2022-08-08 10:12 73K 32016.h 2022-08-08 10:22 7.1K Pandora.c 2022-08-08 10:12 70K Pandora.h 2022-08-08 10:22 5.9K README.txt 2022-08-21 19:42 1.2K Trap.c 2022-08-08 10:22 1.2K Trap.h 2022-08-08 10:22 837 bas32.c 2022-08-08 10:12 148K bas32.h 2022-08-08 10:22 458 mem32016.c 2022-08-08 10:12 7.7K patch.diff 2022-08-08 10:12 4.4K
The code in this directory was frozen at the point where the proof-of-concept was
shown to work.  Current development is in https://gtoal.com/acorn/pandora-WIP/

------


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.

Start by fetching a copy of the https://github.com/hoglet67/PiTubeDirect/tree/hognose-dev/ tree.

From the top-level directory, patch 5 existing files (32016.[ch] Trap.[ch] mem32016.c)
in the NS32016 subdirectory by issuing:

    patch < patch.diff

Add the new files bas32.[ch] and Pandora.[ch] to the NS32016 subdirectory.

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