Skip to content

joegasewicz/zx80-dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Z80 MacOS Starter Template

ZX80 NEXT development tools for MacOS

Alt Text

Install Requirements

You must have virtualenv installed, if not run brew install virtualenv To install the compilers & emulator run the following:

(You will be prompted to input your user password)

make install  # and follow the installation instructions

Installs the following requirements

  1. Download Z88DK
  2. Download Zesarux
  3. Download sjasmplus
  4. Fuse

Using C Language

Place code in the main.c file & use the following command to compile & runs the output .tap file in the Fuse emulator.

make build

Using Z80 Assembly

Place your Assembly code in the src directory. You can run each individual step to assemble with:

make clean
make assemble
make run_snapshot

Or use a single command to run all the above:

make run_assembly

This will assemble your code & open the Zesarux emulator & run the compiled snapshot.

Using NEXT Basic

Place your NEXT Basic code in the basic directory. You can run each individual step to create a .tap file with:

make clean_tap
make bas_to_tap
make run_tap:

Or use a single command to run all the above:

make run_basic:

This will create a .tap file from your NEXT Basic code & open the Zesarux emulator. Currently, it only loads the output .tap file, You will have to load the file manually within the Zesarux emulator.

CSpect

To get CSpect running on MacOS with an M1, M2 chip you will need to follow these steps:

  1. Download ITerm2
  2. Goto Applications,
    • Right click on Iterm2 & click Duplicate.
    • Rename to Iterm2 x86_64
    • Still in Applciations folder, Left click on the Iterm2 x86_64 icon & select Get Info & check the Open using Rosetta option.
    • Now open the Iterm2 x86_64 terminal
  3. Install Rosetta - softwareupdate --install-rosetta
  4. Install brew (this will install a new version of brew to /usr/local)
  5. Install Mono - arch -x86_64 brew install mono
  6. Download CSpect
  7. You will also need a ZX Spectrum NEXT image here
    • Select an image from CURRENT DISTRO IMAGES section.
    • Place this image in your CSpect root folder.
  8. Run CSpect mono cspect.exe -zxnext -nextrom -mmc=cspect-next-2gb.img

Run CSpect

Once you have the followed the above steps, you can now use the following commands

Run CSpect

sh cspect.sh