Run machine code from a REM statement in a ZX Spectrum BASIC loader
Go to file
Neil McPhail a6698e3ead Add a custom entry point to the user code
The routine does not have to start from the first byte of machine code
2024-11-10 19:17:37 +00:00
.gitignore Initial commit 2024-11-10 17:22:58 +00:00
append_checksum.c Initial commit 2024-11-10 17:22:58 +00:00
body.asm Initial commit 2024-11-10 17:22:58 +00:00
code.asm Add a custom entry point to the user code 2024-11-10 19:17:37 +00:00
header.asm Initial commit 2024-11-10 17:22:58 +00:00
Makefile Split out code section for easy editing by user 2024-11-10 17:27:28 +00:00
program.asm Initial commit 2024-11-10 17:22:58 +00:00
README.md Add README.md 2024-11-10 17:35:51 +00:00
remload.asm Add a custom entry point to the user code 2024-11-10 19:17:37 +00:00

ZX Spectrum REM statement machine code loader

Sometimes it would be useful to run machine code directly from ZX BASIC without having to load a CODE block or use lots of POKE and DATA statements. For example, you could add code for a fast loader or headerless loading block.

This Makefile will generate a ZX BASIC .tap file with a REM statement containing the machine code, and will automatically run it. Simply amend the code in code.asm and run make. The file program.tap will be created which can be loaded in an emulator or real Spectrum.

The included BASIC routine will CLEAR 59999 and set BORDER and PAPER to black and INK to white. Amend the remload.asm routine if this is not desired.

Requirements

To use this, you need to install make, pasmo, dd and a C compiler.