falsovsky/z80 Requirements Build Demos License

Multi tool use
Google ChromeFirefoxBrainfuck
Skip to content

Please note that GitHub no longer supports your web browser.
We recommend upgrading to the latest Google Chrome or Firefox.
<!-- -->
Learn more
<!-- -->
Sign in
Sign up
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type | Name | Latest commit message | Commit time |
---|---|---|---|
.. | |||
Failed to load latest commit information. | |||
![]() | Makefile | ||
![]() | README.md | ||
![]() | bf2data.py | ||
![]() | brainfuck.asm | ||
![]() | helloworld.bf | ||
![]() | loader.bas | ||
![]() | main.asm |
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
- Hello World
Bad Hello World from esolang wiki article about Brainfuck- Arvorezinha
- Arvorezinha with loops
- Input/Output test
Fibonacci from Daniel B Cristofani - source
Number Warper also by Daniel B Cristofani - source
License
BSD
ufsHnZItCMGPppO,orAIc vZYNGp Lo,tH2Jap3Qc,iArI,dprn,Nj521xRXP9SMhMk6O