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

Method write_word

crates/virtual-machine/src/memory/ram.rs:96–102  ·  view source on GitHub ↗
(&mut self, addr: u64, data: u32)

Source from the content-addressed store, hash-verified

94
95 fn write_byte(&mut self, addr: u64, data: u8) -> Result<(), VmError> {
96 match self.index(addr) {
97 Some(idx) => {
98 self.data[idx] = data;
99 Ok(())
100 }
101 None => Err(VmError::BusError(addr)),
102 }
103 }
104
105 fn write_halfword(&mut self, addr: u64, data: u16) -> Result<(), VmError> {

Callers 7

write_doublewordMethod · 0.45
store_intFunction · 0.45
store_fpFunction · 0.45
handle_atomicFunction · 0.45
amo_opFunction · 0.45

Calls 1

write_byteMethod · 0.45