falsovsky/z80 Requirements Build Demos License

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



























  • Watch

    1







  • Star


    6







  • Fork


    1



falsovsky/z80














Branch:
master







Find file


History








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























You can’t perform that action at this time.




You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.










Popular posts from this blog

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу