summaryrefslogtreecommitdiff
path: root/website-emu/src/state.rs
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-09-26 16:22:04 -0500
committerNathan Lee <me@nwlee.tech>2026-09-26 16:22:04 -0500
commit9660366219c28fc827c24ce7b428ad7e2534ead0 (patch)
treeb4ca2c6d46bc4f0ba46961bc903c130b09b03934 /website-emu/src/state.rs
parent548905a86473101325540446f35ffda8acd0c3bb (diff)
scaffold rest of website
Diffstat (limited to 'website-emu/src/state.rs')
-rw-r--r--website-emu/src/state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/website-emu/src/state.rs b/website-emu/src/state.rs
index f26167f..4b32713 100644
--- a/website-emu/src/state.rs
+++ b/website-emu/src/state.rs
@@ -5,6 +5,7 @@ pub struct CpuState {
pub registers: [u32; 32],
pub csr: [u32; 4096],
pub pc: u32,
+ pub on: bool
}
impl CpuState {
@@ -13,7 +14,8 @@ impl CpuState {
memory,
registers: [0u32; 32],
csr: [0u32; 4096],
- pc: 0
+ pc: 0,
+ on: true
}
}
}