{"id":26052548,"url":"https://github.com/qalle2/nes-bf","last_synced_at":"2026-04-23T09:35:31.473Z","repository":{"id":54669831,"uuid":"494833283","full_name":"qalle2/nes-bf","owner":"qalle2","description":"Brainfuck interpreter (NES)","archived":false,"fork":false,"pushed_at":"2023-10-05T01:36:59.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-10-05T11:07:03.721Z","etag":null,"topics":["6502","asm6","assembly","brainfuck","homebrew","nes"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qalle2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-21T16:14:53.000Z","updated_at":"2023-01-03T10:41:13.000Z","dependencies_parsed_at":"2022-08-13T23:20:52.384Z","dependency_job_id":"8c38d184-bc9a-442c-9967-865b0de6c8d6","html_url":"https://github.com/qalle2/nes-bf","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qalle2%2Fnes-bf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qalle2%2Fnes-bf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qalle2%2Fnes-bf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qalle2%2Fnes-bf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qalle2","download_url":"https://codeload.github.com/qalle2/nes-bf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242512383,"owners_count":20141390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["6502","asm6","assembly","brainfuck","homebrew","nes"],"created_at":"2025-03-08T06:40:58.809Z","updated_at":"2026-04-23T09:35:26.409Z","avatar_url":"https://github.com/qalle2.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qalle's Brainfuck\n\nA Brainfuck interpreter for the [NES](https://en.wikipedia.org/wiki/Nintendo_Entertainment_System).\n\nTable of contents:\n* [List of files](#list-of-files)\n* [Features](#features)\n* [Technical info](#technical-info)\n* [How to use](#how-to-use)\n  * [Edit mode](#edit-mode)\n  * [Run mode](#run-mode)\n* [Character set](#character-set)\n* [References](#references)\n\n## List of files\n* `*.bf`: long Brainfuck programs\n* `assemble.sh`: a Linux script that assembles the program (warning: deletes files)\n* `bf.asm`: source code (assembles with [ASM6](https://www.romhacking.net/utilities/674/))\n* `bf.nes.gz`: the assembled program (iNES format, gzip compressed)\n* `chr.bin.gz`: CHR ROM data (gzip compressed)\n* `chr.png`: CHR ROM data as an image (can be encoded with `nes_chr_encode.py` in my [NES utilities](https://github.com/qalle2/nes-util))\n* `examples.txt`: short Brainfuck programs\n* `movies.tar.gz`: FCEUX movie files that enter a Brainfuck program into the NES program\n* `snap*.png`: screenshots\n* `txt2fm2.py`: a Python script that converts a Brainfuck program into an FCEUX movie file that enters the Brainfuck program into the NES program\n\n## Features\n* maximum program size: 239 (8\u0026times;30\u0026minus;1) instructions\n* maximum output size: 240 (8\u0026times;30) bytes\n* Brainfuck RAM size: 1,024 bytes\n* output speed: 1 character/frame\n\n## Technical info\n* mapper: NROM\n* PRG ROM: 16 KiB\n* CHR ROM: 8 KiB\n* name table mirroring: vertical\n* compatibility: NTSC \u0026amp; PAL\n\n## How to use\nThere are two modes.\n\n### Edit mode\n![edit mode](snap1.png)\n\n* the program starts in this mode\n* the cursor (blinking square) is always on the program input area\n* note: the Brainfuck program won't run if brackets don't match\n\n### Run mode\n![run mode](snap2.png)\n\n* there are three submodes:\n  * if the cursor is on the output area: the Brainfuck program is running\n  * if the cursor is on the virtual keyboard: the user is expected to enter a character\n  * if the cursor is next to the `B=exit` text: the Brainfuck program has finished or the maximum output size has been reached\n* press B at any time to return to edit mode\n\n## Character set\n* output behavior:\n  * byte `0x0a` moves the cursor to the start of the next line\n  * other bytes advance the cursor by one\n* output appearance:\n  * bytes `0x20` to `0x7e`: as in ASCII\n  * some bytes from `0x7f` on contain special characters\n  * other bytes are blank\n* input (virtual keyboard):\n  * newline symbol (\u0026#x21b5; at bottom right) inserts byte `0x0a`\n  * other symbols insert bytes `0x20` to `0x7e`\n\n## References\n* [Wikipedia \u0026ndash; Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)\n* [Esolang \u0026ndash; Brainfuck](https://esolangs.org/wiki/Brainfuck)\n* [NESDev Wiki](https://www.nesdev.org/wiki/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqalle2%2Fnes-bf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqalle2%2Fnes-bf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqalle2%2Fnes-bf/lists"}