BF-SYS

所属分类:其他
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-11-07 19:56:34
上 传 者sh-1993
说明:  使用脑干作为其指令集的幻想计算机
(A fantasy computer that uses brainfuck as its instruction set)

文件列表:
LICENSE (1052, 2023-11-19)
TODO.md (233, 2023-11-19)
examples/ (0, 2023-11-19)
examples/256-colors.b (66, 2023-11-19)
examples/amogus-grid.b (230, 2023-11-19)
examples/amogus.b (201, 2023-11-19)
examples/colored-lines.b (58, 2023-11-19)
examples/hello-world.b (655, 2023-11-19)
examples/rainbow-square.b (386, 2023-11-19)
examples/snippets.b (913, 2023-11-19)
examples/traaaaaaans.b (429, 2023-11-19)
index.js (512, 2023-11-19)
package-lock.json (30083, 2023-11-19)
package.json (94, 2023-11-19)
static/ (0, 2023-11-19)
static/assets/ (0, 2023-11-19)
static/assets/font.ttf (10280, 2023-11-19)
static/assets/index.css (2607, 2023-11-19)
static/script/ (0, 2023-11-19)
static/script/const.js (3261, 2023-11-19)
static/script/devices.js (1669, 2023-11-19)
static/script/index.js (4296, 2023-11-19)
static/script/ui.js (2182, 2023-11-19)
views/ (0, 2023-11-19)
views/index.ejs (1437, 2023-11-19)
views/reference.ejs (2871, 2023-11-19)

# BF-SYS A [fantasy computer](https://en.wikipedia.org/wiki/Fantasy_video_game_console) that uses brainfuck as its instruction set. **Check it out at https://brainfuck.zptr.cc/!** There aren't many [examples](examples) yet (i suck at brainfuck) so contribution would be really appreciated! # spec ## Screen BF-SYS has a 32x32 screen that uses 8-bit colors. ## Sound BF-SYS has a speaker with 32 channels each with different frequency. The speaker has a 60hz sound timer, which decreases the delay of each channel until they reach zero. A channel plays sound only if its timer is not zero. ## Input Input is done with a regular keyboard using keycodes from [here](http://gcctech.org/csc/javascript/javascript_keycodes.htm) ## Memory There are 4096 bytes of memory, 8192 bytes of ROM and 4096 additional bytes for the 16-bit stack, allowing up to 256-depth nested loops. ## I/O The input instruction (`,`) stops the execution until the next tick of a fixed 1kHz clock, and sets the current memory cell to the code of the currently pressed key. If no key is pressed, the cell is set to zero. This instruction can also be used as sleep, since it always waits a constant amount of time no matter the speed of the execution. The output instruction (`.`) increments the output pointer. If the output pointer is divisible by 33, it changes the delay of a sound channel to the value at the current memory cell. Otherwise, it changes a pixel on the screen to the value at the current memory cell.

近期下载者

相关文件


收藏者