What do you think of my idea? HARDFUCK - Brainfuck but for Hardware!
▲ 2 r/brainfuck+1 crossposts

What do you think of my idea? HARDFUCK - Brainfuck but for Hardware!

who wouldn't want that!

I'm currently designing a bare-metal Brainfuck core for FPGAs and wanted to get some feedback on the architecture before I start writing all the Verilog.

Tape Architecture (Memory-Mapped I/O) The tape works like standard Brainfuck, but with negative addresses (or pointer overflow) mapped to hardware registers instead of normal RAM:

  • -1: Raw GPIO Data Register (0b00000000 = all off). Using . and , to set/read pins to prevent setting stuff on accident.
  • -2: GPIO Direction Register (0 = input, 1 = output).
  • -3: Analog IN (ADC).
  • -4: Access to instruction memory itself (read/write).
  • -5: Configuration (pin mapping for serial/PWM etc.).
  • -6 to -8 (Copy addresses): Set source address at -6, dest at -7, and writing to -8 via . triggers a fast 1-cycle DMA copy from A to B.

Instruction Memory (4-Bit Encoding)

  • Bit 0: Flag bit (0 = standard BF instruction, 1 = empty/NOP, jump label, or extended ops like bitwise shifts).
  • Bit 1-3: The 3-bit instruction (0 = >, 1 = <, 2 = +, 3 = -, 4 = ., 5 = ,, 6 = [, 7 = ]).

Bootloader Simple approach: Pulling a pin low on reset (or a specific serial sequence) overwrites instruction memory. Since instruction memory is accessible at -4, you could even write a native BF bootloader that reads a new program from serial and writes it straight to memory.

Loops Either a counter tracking nesting depth to scan forward/backward, or just a tiny hardware stack for jump addresses.

What do you guys think? Any suggestions on what else to add to the negative address space?

btw: I only found out about https://www.youtube.com/watch?v=QloNq8AoHvU after I already made this concept, it a similar idea and would be a cool endproduct but the philosophy and design are diffrent (even thoug i could probably design it for that hardware)

u/Sufficient-Pair-1856 — 3 months ago
▲ 154 r/masterhacker+1 crossposts

FSK/OOK based layer-2 protocol reverse engineering

Lately I've been trying to recove the key fob protocol of my bmw 320d 2005 car till I discovered that the key fob operates on 868.35mhz with what is called Frequency Shift Keying to lock/unlock or trunk, everytime I capture something using the RTL sdr with gqrx on Kali I get different signals for pressing same button which indicates that this is not a trivial On Off Keying but some proprietary protocol is being implemented, from the amplitude to time plot I can clearly see the preamble alternating bits then a fixed and indow of bits across all button pressings which suggests some sort of an identifier.

Any one has experience on such project feel free to leave a comment.

Or if u know some sort of tip that helps me recover the binary representation of the msg being transmitted you are welcomed.

u/Sufficient-Pair-1856 — 3 months ago

My circuit worked once, now it's always on. Was the MOSFET destroyed? Can i prevent that?

Excuse my messy plan...

The PCB. its rather crammed but nothing touches where it shouldn't

I am building a model rocket launch controller, but after I fired it once, it is now stuck "on", which is obviously a huge safety hazard. The microcontroller pin is definitetly LOW and I didn't acidentally use the wrong resistors. I measured the output to ground (even with no power applied) and I'm getting about 0.3 ohms. Does anyone know what might have failed? Did i fry the MOSFET snd if so, how would you prevent it? a beefy resistor in series with the ignitor?

reddit.com
u/Sufficient-Pair-1856 — 4 months ago

Was the dance contest staged?

I watched midsomar yesterday (as basically my first horror movie except stranger things) and I was wondering if it was already planned for Dani to win because if she wouldn't it wouldn't have played out so nice and I doubt that she is that good of a dancer

reddit.com
u/Sufficient-Pair-1856 — 4 months ago
▲ 28 r/fpv

Whoop chargers where out of stock

I guess that will work (unless I forgot I set it to 6s)

u/Sufficient-Pair-1856 — 4 months ago