summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-07-29 10:26:43 -0500
committerNathan Lee <me@nwlee.tech>2026-07-29 10:26:43 -0500
commitec38c56677fae2bf46fc50e04e404a8bdb336d44 (patch)
treec11bd428d18414b581c86f17b23f7403975b89b4 /src/main.rs
parentc43100337514f98c0eeb202980b42b558d303b3e (diff)
handle permissions checksHEADmaster
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index c276280..74515b1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -110,7 +110,7 @@ fn main() {
fn handle_instruction(state: &mut CpuState) {
let pc = state.pc;
- let word = state.memory.read_word(pc).unwrap();
+ let word = state.memory.read_instruction(pc).unwrap();
let opcode = word & 0x7f;
match opcode {
0b0110011 => {