Skip to content

Instantly share code, notes, and snippets.

@SebastiaanYN
SebastiaanYN / brainfuck.s
Last active September 17, 2021 13:22
Brainfuck JIT written in Assembly
# Brainfuck JIT
#
# The brainfuck code is directly compiled to machine code.
# In the machine code, the register r13 is used to store the cell index.
.global brainfuck
# Uncomment to write the JIT code to a file
.equ DEBUG, 1