Core/cpu/pic16c5x/pic16c5x.cpp
/****************************************************************************
 *  Reset registers to their initial values
 ****************************************************************************/
Reset registers to their initial values
Reset registers to their initial values
static void pic16C5x_reset_regs(void)
{
	R.PC     = pic16C5x_reset_vector;
	R.CONFIG = temp_config;
	R.TRISA  = 0xff;
	R.TRISB  = 0xff;
	R.TRISC  = 0xff;
	R.OPTION = (T0CS_FLAG | T0SE_FLAG | PSA_FLAG | PS_REG);
	R.PCL    = 0xff;
	R.FSR   |= (UINT8)(~picRAMmask);
	R.PORTA &= 0x0f;
	R.prescaler = 0;
	delay_timer = 0;
	old_T0      = 0;
	inst_cycles = 0;
}
static void pic16C5x_reset_regs ( void ) { R . PC = pic16C5x_reset_vector ; R . CONFIG = temp_config ; R . TRISA = 0xff ; R . TRISB = 0xff ; R . TRISC = 0xff ; R . OPTION = ( T0CS_FLAG | T0SE_FLAG | PSA_FLAG | PS_REG ) ; R . PCL = 0xff ; R . FSR |= ( UINT8 ) ( ~ picRAMmask ) ; R . PORTA &= 0x0f ; R . prescaler = 0 ; delay_timer = 0 ; old_T0 = 0 ; inst_cycles = 0 ; }
Reset registers to their initial values
Reset registers to their initial values