Core/cpu/hd6309/hd6309.cpp
/****************************************************************************/
/* Reset registers to their initial values                                  */
/****************************************************************************/
Reset registers to their initial values
Reset registers to their initial values
void hd6309_reset(void)
{
	hd6309.int_state = 0;
	hd6309.nmi_state = HD6309_CLEAR_LINE;
	hd6309.irq_state[0] = HD6309_CLEAR_LINE;
	hd6309.irq_state[0] = HD6309_CLEAR_LINE;
	DPD = 0;			
	MD = 0; 			
	CC |= CC_II;		
	CC |= CC_IF;		
	PCD = RM16(0xfffe);
	CHANGE_PC;
	UpdateState();
}
void hd6309_reset ( void ) { hd6309 . int_state = 0 ; hd6309 . nmi_state = HD6309_CLEAR_LINE ; hd6309 . irq_state [ 0 ] = HD6309_CLEAR_LINE ; hd6309 . irq_state [ 0 ] = HD6309_CLEAR_LINE ; DPD = 0 ; MD = 0 ; CC |= CC_II ; CC |= CC_IF ; PCD = RM16 ( 0xfffe ) ; CHANGE_PC ; UpdateState ( ) ; }
Reset registers to their initial values
Reset registers to their initial values
/* Reset direct page register */ /* Mode register gets reset */ /* IRQ disabled */ /* FIRQ disabled */