Running ZX81 BASIC programs that use the SP ROM Extended commands can be achieved via the ZEsarUX Emulator for OS X, Linux and Windows

ZEsarUX Emulator is available here.

Install from the .dmg file (OS X)

Copy the SP ROM .ROM file sp-rom.rom (see Xcode Project in Disassembly post below) to

/Path/To/ZEsarUX-3.0/zesarux.app/Contents/Resources/alternaterom_sp_rom.rom

Edit ZEsarUX Emulator config file

$ pico ~/.zesaruxrc
--machine ZX81
#--romfile alternaterom_aszmice07.rom
# Select custom ROM file (commented out for now)
--zoom 4
--zx8081mem 16
# Emulate 1,2,...16 kb of memory on ZX80/ZX81
--zx8081ram8K2000
# Emulate 8K RAM in 2000H for ZX80/ZX81
--zx8081ram16K8000
# Emulate 16K RAM in 8000H for ZX80/ZX81
--zx8081ram16KC000 
# Emulate 16K RAM in C000H for ZX80/ZX81
--noautoload
# No autoload tape file on Spectrum (and ZX80/ZX81)
--smartloadpath "/Path/To/SP-ROM/Source/Files/"
--realvideo
--wrx
# Enable WRX mode on on ZX80/ZX81 (v3.0 and later)
--loadbinary ../Resources/alternaterom_sp_rom.rom 2000h 0
# Load binary file "file" at address "addr" with length "len" (v3.0 and later). Set len to 0 to load the entire file in memory (F5 e then o for manual shortcut)
--loadbinarypath "/Path/To/SP-ROM/Source/Files/"
# Select initial Load Binary path (v3.0 and later)

# :dbolli:20150704 17:05:18 Updated config file options for ZEsarUX v3.0

p17 of the SP ROM Manual has a sample BASIC program

ZEsarUX.app aszmic sp rom load binary manual p17 small Screen Shot 2015-06-05 at 4.51.41 pm

Sample program from p17 of SP ROM Manual

A BASIC text file of the above is available here and an executable .p file compiled using zxtext2p is available here.

An Applescript BBEdit script to compile a text file to a .p file using zxtext2p can be found here.

Launch ZEsarUX Emulator app and type

F5->Smart Load

Select .p file

 Type

POKE 16389,102
NEW

This will lower RAMTOP to $6600 to allow room for the HiRes display file

Type

LOAD ""
RAND USR 8195

ZEsarUX.app aszmic sp rom load binary RAND USR 8195 scaled 45pc Screen Shot 2015-05-30 at 10.59.32 am

Comprocsys copyright Banner appears after RAND USR 8195

You should see the Comprocsys copyright Banner appear

Press Enter

You should see the BASIC listing appear with the Extended BASIC commands

ZEsarUX.app aszmic sp rom load binary RAND USR 8195 Enter BASIC scaled 45pc Screen Shot 2015-05-30 at 11.06.23 am

ZX81 BASIC Listing with SP ROM Extended commands being edited

This can be edited as required or re-LOADed from the .p file

Type

RUN

ZEsarUX.app aszmic sp rom load binary RAND USR 8195 RUN BASIC scaled 45pc Screen Shot 2015-05-30 at 11.16.26 am

SP ROM BASIC Program executed via RUN command

You should see the HiRes display being updated as above

Advertisements