implement emulation for square channel 1 & 2 of ppu.