added (probably) correct SN76496 emulation