Fixed bug with main emulate loop w/ S
This commit is contained in:
parent
fd3ef3453c
commit
65ba8339c6
@ -37,7 +37,7 @@ int main(int argc, char **argv) {
|
||||
do {
|
||||
|
||||
// Step 1: Fetch instruction at PC's address
|
||||
wrd = readWord(state, state->pc);
|
||||
wrd = readWord(state->memory, state->pc);
|
||||
|
||||
// Step 2: Decode instruction to internal representation
|
||||
inst = decode(wrd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user