PPU decoder rewritten