Archive for April, 2014


ZX Spectrum NIRVANA Engine z88dk Demo running on Spectaculator Emulator on iPad Air

IMG_0009 nirvana engine test on spectaculator ipad 20140412-154820

ZX Spectrum NIRVANA Engine z88dk Demo running on Spectaculator Emulator on iPad Air

I have added an initial debug screen to my version of the z88dk NIRVANA demo

IMG_0010 nirvana test debug info spectaculator iPad

ZX Spectrum NIRVANA Engine z88dk Demo with my start screen debug info

Info on NIRVANA Engine for ZX Spectrum by Einar Saukas can be found here http://www.zxshed.co.uk/sinclairfaq/index.php5?title=NIRVANA_Engine and here http://www.worldofspectrum.org/forums/showthread.php?t=45538

To run in Spectaculator iOS App, Save snapshot from Fuse as .szx file
Copy and rename as ~/Library/Mobile Documents/F4332SF2XY~com~spectaculator~Spectaculator/Documents/Saved Games/48K BASIC.tzx/Saved 48K BASIC (1).szx

~/Library/Mobile Documents is basically a local copy of your iCloud data. See http://macdailynews.com/2012/08/06/how-to-access-your-icloud-files-from-your-macs-finder/ for more info

# :dbolli:20150630 17:31:55 Update as of OS X 10.10.x ~/Library/Mobile Documents has been re-purposed as iCloud Drive but if you click on ~/Library in the Finder and search for Spectaculator, you will find that the folder above still exists.

Following on from the z88dk Xcode Project post below, the following steps describe how to set up an Xcode External Build Project to Edit and Compile Boriel ZX Basic .bas and .asm source files (Xcode version 5.1.1 is used below but should still work with earlier versions)

1. Launch Xcode
2. File->New Project
3. Select Other->External Build System
4. Click Next

Click Next

Click Next

5. Enter Project Name e.g. zxbasic-spectrum-test
6. Enter Build tool /bin/bash
7. Click Next

8. Choose a directory to create files in and click Create

9. Copy .bas and .asm files and zxbasic-zxspectrum-my-project-name-build.sh file to project directory created by Xcode

Example zxbasic-zxspectrum-my-project-name-build.sh file can be found here

10. Add files copied above to Xcode Project via Cmd-Opt-A

Add files copied above to Xcode Project via Cmd-Opt-A

Add files copied above to Xcode Project via Cmd-Opt-A

11. Change .bas files Type in Xcode sidebar to Pascal (or any of the other source code file types) to enable syntax highlighting

Change .bas files Type in Xcode sidebar to Pascal (or any of the other source code file types) to enable syntax highlighting

Change .bas files Type in Xcode sidebar to Pascal (or any of the other source code file types) to enable syntax highlighting

12. Edit zxbasic-zxspectrum-my-project-name-build.sh file and edit Exec Name

Z80EXECNAME=my-project-name

Note: PATH declaration is included as Xcode doesn’t pick up PATH from .bash_profile, .profile etc.

PATH declaration /usr/local/bin/ is added for tapmaker (part of z88dk distribution)

13. Save zxbasic-zxspectrum-my-project-name-build.sh

14. Click on Project in Xcode and Click Target->Info
15. Enter zxbasic-zxspectrum-$(PROJECT_NAME)-build.sh as Arguments
16. Enter $(SRCROOT) as Directory

Enter $(SRCROOT) as Directory

Enter $(SRCROOT) as Directory

17. Click Product->Build to run zxbasic-zxspectrum-my-project-name-build.sh

"Click

Build to run zxbasic-zxspectrum-my-project-name-build.sh” class /> Click Product->Build to run zxbasic-zxspectrum-my-project-name-build.sh

The following steps describe how to set up an Xcode External Build Project to Edit and Assemble z88dk .c and .asm source files (Xcode version 5.1.1 is used below but should still work with earlier versions)

1. Launch Xcode
2. File->New Project
3. Select Other->External Build System

Click Next

Click Next

4. Click Next

5. Enter Project Name e.g. z88dk-spectrum-test
6. Enter Build tool /bin/bash

Click Next

Click Next

7. Click Next

8. Choose a directory to create files in and click Create

9. Copy .c and .asm files and z88dk-zxspectrum-my-project-name-build.sh file to project directory created by Xcode

Example z88dk-zxspectrum-my-project-name-build.sh file can be found here

Add files copied above to Xcode Project via Cmd-Opt-A

Add files copied above to Xcode Project via Cmd-Opt-A

10. Add files copied above to Xcode Project via Cmd-Opt-A

Change .asm files Type in Xcode sidebar to Assembly (to enable syntax highlighting)

Change .asm files Type in Xcode sidebar to Assembly (to enable syntax highlighting)

11. Change .asm files Type in Xcode sidebar to Assembly (to enable syntax highlighting)

12. Edit z88dk-zxspectrum-my-project-name-build.sh file and edit Exec Name

Z80EXECNAME=my-project-name

Note: PATH declaration is included as Xcode doesn’t pick up PATH from .bash_profile, .profile etc.

PATH declaration /usr/local/bin/ is added for tapmaker

13. Save z88dk-zxspectrum-my-project-name-build.sh

14. Click on Project in Xcode and Click Target->Info
15. Enter z88dk-zxspectrum-$(PROJECT_NAME)-build.sh as Arguments

Enter $(SRCROOT) as Directory

Enter $(SRCROOT) as Directory

16. Enter $(SRCROOT) as Directory

17. Click Product->Build to run z88dk-zxspectrum-my-project-name-build.sh

Click Product->Build to run z88dk-zxspectrum-my-project-name-build.sh

Click Product->Build to run z88dk-zxspectrum-my-project-name-build.sh

Note: To add additional Build targets (e.g. ZX81) duplicate the ZX Spectrum target and change the name of the .sh file in the argument to the name of the zx81 build .sh file

To add additional Build targets (e.g. ZX81) duplicate the ZX Spectrum target and change the name of the .sh file in the argument to the name of the zx81 build .sh file

To add additional Build targets (e.g. ZX81) duplicate the ZX Spectrum target and change the name of the .sh file in the argument to the name of the zx81 build .sh file

Example z88dk-zx81-my-project-name-build.sh file can be found here

also edit the Scheme names in Projects->Schemes->Manage Schemes to match the target names