
CHIP-8 Quirks That Break Programs and How to Handle Them
CHIP-8 interpreters disagree on shifts, logic flags, FX55 and FX65, sprite wrapping and jump offsets. Learn each quirk and add a switchable quirks structure.
Tag
255 posts

CHIP-8 interpreters disagree on shifts, logic flags, FX55 and FX65, sprite wrapping and jump offsets. Learn each quirk and add a switchable quirks structure.

Collect seeds, merge and shrink a corpus with libFuzzer -merge=1 and afl-cmin, replay it in CI with -runs=0, and keep it clean of crashes and private data.

Encode H.264, HEVC and AV1 on Intel GPUs with FFmpeg 7.1 QSV encoders: libvpl and driver setup, hardware frames, ICQ quality, presets and look-ahead.

Avoid the four classic undefined-behaviour traps in C binary parsers: unaligned casts, signed shifts, overflowing bounds checks and attacker-controlled lengths.

Parallelize recursive C code such as Fibonacci and tree walks with OpenMP tasks, taskwait and a cutoff, and see why a task per call runs slower than serial.

Decode the 512-byte master boot record field by field, from 446 bytes of boot code to four 16-byte partition entries and the 0xAA55 signature, with xxd output.

Use WaitForSingleObject and WaitForMultipleObjects to block on events, threads, processes and mutexes, read the return codes and avoid the 64 handle limit.

Bring up a USB CDC serial port on an STM32F4 with TinyUSB: 48 MHz clock, OTG_FS pins, VBUS sensing, the interrupt handler, tusb_config.h and a printf retarget.

Build an I2C master in Verilog that writes one byte to a 7-bit address with quarter-bit timing, open-drain lines and ACK checking, tested against a slave model.

Build a file parser with afl-clang-fast and AddressSanitizer, seed and run afl-fuzz 4.x, read the crashes directory and shrink a crash with afl-tmin.

Encode with h264_nvenc and hevc_nvenc in FFmpeg 7.1 on NVIDIA GPUs: driver needs, a working command, quality settings, session limits and fixes.

Build a resumable state-machine parser in C that takes a protocol in any chunking, so TCP segmentation never breaks framing, and test it at every split offset.