add code for square channel 0 emulation of ppu.