// XCE - eXchange Carry and Emulation flags
eXchange Carry and Emulation flags
// XCE - eXchange Carry and Emulation flags
func (cpu *CPU) op_xce(info *stepInfo) {
	if cpu.C == cpu.E {
		return
	}
	if cpu.C == 1 {
		cpu.C = cpu.E
		cpu.SetFlags(cpu.Flags() | 0x30)
		cpu.E = 1 
		cpu.SP = 0x0100  | (cpu.SP & 0x00ff)
	} else {
		cpu.C = cpu.E
		cpu.E = 0
	}
}
func ( cpu * CPU ) op_xce ( info * stepInfo ) { if cpu . C == cpu . E { return } if cpu . C == 1 { cpu . C = cpu . E cpu . SetFlags ( cpu . Flags ( ) | 0x30 ) cpu . E = 1 cpu . SP = 0x0100 | ( cpu . SP & 0x00ff ) } else { cpu . C = cpu . E cpu . E = 0 } }
eXchange Carry and Emulation flags
eXchange Carry and Emulation flags
// after SetFlags() due to conflict 