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

Method write_halfword

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

Source from the content-addressed store, hash-verified

88
89 fn read_doubleword(&mut self, addr: u64) -> Result<u64, VmError> {
90 let lo = self.read_word(addr)? as u64;
91 let hi = self.read_word(addr + 4)? as u64;
92 Ok(lo | (hi << 32))
93 }
94
95 fn write_byte(&mut self, addr: u64, data: u8) -> Result<(), VmError> {
96 match self.index(addr) {
97 Some(idx) => {

Callers 2

store_intFunction · 0.45

Calls 1

write_byteMethod · 0.45

Tested by 1