INIT-Werte bei RESET

This commit is contained in:
2017-05-11 11:43:11 +02:00
parent f263a04f0f
commit 6074bd8217
2 changed files with 14 additions and 2 deletions

View File

@@ -120,7 +120,19 @@ namespace PIC_Simulator.PIC
public PICProgramm()
{
// Anfangswerte
SetRegisterOhneBank(ADDR_PCL, 0x00);
SetRegisterOhneBank(ADDR_STATUS, 0x18);
SetRegisterOhneBank(ADDR_PCLATH, 0x00);
SetRegisterOhneBank(ADDR_INTCON, 0x00);
SetRegisterOhneBank(ADDR_OPTION, 0xFF);
SetRegisterOhneBank(ADDR_TRIS_A, 0x1F);
SetRegisterOhneBank(ADDR_TRIS_B, 0xFF);
SetRegisterOhneBank(ADDR_EECON1, 0x00);
SetRegisterOhneBank(ADDR_EECON2, 0x00);
}
public void Laden(string code)