Skip to content

Instantly share code, notes, and snippets.

@furrtek
furrtek / yuvdump.s
Last active June 26, 2020 00:19
Reads the RGB to YUV lookup ROM in the HuC6260
; YUVDUMP - furrtek 2020
; With help from David Shadoff and Chris Covell
; Reads the RGB to YUV lookup ROM in the HuC6260
; Ugly code is ulgy, I was a Z80 kid :(
; How to use:
; -Wire HuC6260 pin 58 to ground
; -Run this program from a flash cart
; -Press UP, wait for the screen to fill up
@furrtek
furrtek / ngp_horoscope.py
Last active May 5, 2024 21:02
NGP Horoscope simulator
# NGP Horoscope simulator v1.1
# furrtek 2021
# Based on algorithm found in ngp_bios.bin
import sys
from datetime import datetime
if len(sys.argv) == 1:
print(sys.argv[0] + " DD/MM/YYYY")
exit()
@furrtek
furrtek / konami4bpp.txt
Created January 20, 2025 21:44
Konami 4bpp sprite tile format
Konami 4bpp sprite tile format
16-bit graphics ROMs go in pairs
One 32-bit word describes a row of eight 4bpp pixels
Each byte is a bitplane
ROM UUUUUUUUUUUUUUUULLLLLLLLLLLLLLLL
Bit 3322222222221111111111
10987654321098765432109876543210
Pixel 01234567012345670123456701234567 (0=left)