mirror of
https://github.com/thiagoauler/apple1.git
synced 2025-02-16 08:31:14 +00:00
initializing the registers
This commit is contained in:
parent
6dc70b91c5
commit
ec8b20c407
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user