z80/zxbrainfuck
Pedro de Oliveira 7b1ac12c97 Test for SOURCE variable on Makefile 2014-08-16 04:27:54 +01:00
..
Makefile Test for SOURCE variable on Makefile 2014-08-16 04:27:54 +01:00
README.md Update docs 2014-08-15 22:37:31 +01:00
bf2data.py Forgot to close 2014-08-16 04:16:59 +01:00
brainfuck.asm Also add this one 2014-08-15 22:38:51 +01:00
helloworld.bf Add an BF example file 2014-08-15 22:29:59 +01:00
loader.bas Add a Basic Loader 2014-08-15 22:21:10 +01:00
main.asm Remove BF source from main file 2014-08-15 22:22:56 +01:00

README.md

zxBrainfuck

zxBrainfuck is a Brainfuck interpreter in Z80 assembly for the ZX Spectrum.

  • Supports all the Brainfuck instructions.
  • User defined Brainfuck memory size in the memory_size variable. The default is 5000.
  • The memory wraps at the beginning and end.
  • Clears all the memory cells before use.
  • Correctly counts the number of ] equivalent to [, for example, it does not run the . in this code:
[[].]
  • Uses a nice lookup table to run the instruction.

Requirements

  • Pasmo - Z80 Assembler, it's Open Source and Cross Platform
  • bas2tap - Convert Spectrum Basic to TAP

Build

git clone https://github.com/falsovsky/z80.git
cd z80/zxbrainfuck

To convert a brainfuck source file to Spectrum DATA

make brainfuck SOURCE="helloworld.bf"

And finally

make

Demos

License

BSD