Read 1 byte unsigned.
9.3. Memory Operations (Appendix A.4)
def
def
Read 2 bytes unsigned LE.
def
Read 4 bytes unsigned LE.
def
Read 8 bytes LE.
def
Write 1 byte.
def
Write 2 bytes LE.
def
Write 4 bytes LE.
def
Write 8 bytes LE.
def
Read n raw bytes from memory starting at addr. Returns ByteArray or fault.
def
Jar.PVM.writeByteArray (m : Jar.PVM.Memory) (addr : UInt64) (data : ByteArray) : Jar.PVM.MemResult Jar.PVM.MemoryJar.PVM.writeByteArray (m : Jar.PVM.Memory) (addr : UInt64) (data : ByteArray) : Jar.PVM.MemResult Jar.PVM.Memory
Write a ByteArray into memory starting at addr. Returns updated memory or fault.
def
sbrk(n): Grow the heap by n pages. Returns new heap base or 0 on failure. Finds the first inaccessible page after existing writable heap and marks n new pages as writable.