MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / bus_read_word_aligned

Function bus_read_word_aligned

crates/virtual-machine/tests/vm_bus.rs:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124// --- System Bus, alignment requirements ---
125
126#[test]
127fn bus_read_halfword_aligned() {
128 let mut bus = SystemBus::new(Vec::new());
129
130 bus.write_halfword(RAM_BASE, 0xBEEF)
131 .expect("bus access should succeed");
132 let hw = bus
133 .read_halfword(RAM_BASE)
134 .expect("bus access should succeed");
135 assert_eq!(hw, 0xBEEF);

Callers

nothing calls this directly

Calls 2

write_wordMethod · 0.45
read_wordMethod · 0.45

Tested by

no test coverage detected