mirror of
https://github.com/thiagoauler/apple1.git
synced 2025-08-15 19:27:27 +00:00
initializing the registers
This commit is contained in:
Binary file not shown.
@@ -13,6 +13,10 @@ void init()
|
||||
// pc is set using 0xFFFC
|
||||
pc = read_word(0xFFFC);
|
||||
sp = 0xFF;
|
||||
sr = 0x20;
|
||||
ac = 0x00;
|
||||
x = 0x00;
|
||||
y = 0x00;
|
||||
}
|
||||
|
||||
void fetch()
|
||||
|
Reference in New Issue
Block a user