Fixed bug with main emulate loop w/ S

This commit is contained in:
Themis Demetriades 2024-06-02 21:53:42 +01:00
parent fd3ef3453c
commit 65ba8339c6

View File

@ -37,7 +37,7 @@ int main(int argc, char **argv) {
do { do {
// Step 1: Fetch instruction at PC's address // 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 // Step 2: Decode instruction to internal representation
inst = decode(wrd); inst = decode(wrd);