unit MemDump em.utils/MemDump.em 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16package em.utils module MemDump function print32(addr: ptr_t, count: uint8) end def print32(addr, count) auto p32 = <uint32*>addr while count-- auto v = *p32 printf "%08x: %08x\n", p32, v p32 += 1 end end