Skip to content

Instantly share code, notes, and snippets.

@Random832
Random832 / dither.py
Created April 23, 2021 20:38
bayer dithering experiment
import numpy as np
from PIL import Image
import sys
im = Image.open('chart.png')
im2 = np.array(im)
factor = 127 # 84
@SonoSooS
SonoSooS / DMGCPU.MD
Last active March 21, 2025 09:58
Game Boy CPU internals

This document is intended to document certain inner workings of the CPU.

There have been efforts by emu-russia and gekkio to have the CPU decapped, and so we have the decode ROM accessible to us. This means, that we know exactly what each opcode does (besides some nuanced behavior related to HALT, STOP, and some state management related to interrupts and power saving which are hard to untangle).

Table of contents

@AndrasKovacs
AndrasKovacs / TwoStageRegion.md
Last active July 2, 2025 18:11
Lightweight region memory management in a two-stage language