RC version of instruction set for BrainfuckPC relay computer. It support all +-<>[]., brainfuck instructions and a little bit more. Just because hardware allow me to do it.
Brainfuck mappings:
- ADD = +
- SUB = -
- ADA = >
- ADS = <
- JZP = [
- JNZ = ]
- IO.IN = ,
- IO.OUT = .
All instructions are 16-bit wide.
- Bits 15, 14, 13, 12 - define instruction class
- Bit 12 - Signed bit for Adder commands. Value of this bit extended to 13-15 bits when sending to adder input B;
- Bits 11-0 - contain least 12-bit of signed integer. Master 4 bits generates automatically: 0 for positive and 1 for negative values.
- AP - Address pointer Register
- IP - Instruction pointer register
- *AP - Current Data cell
- CIN - Console input
- COUT - console output
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.