diff options
Diffstat (limited to 'aarch64/mono/aarch64_extras.lem')
| -rw-r--r-- | aarch64/mono/aarch64_extras.lem | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/aarch64/mono/aarch64_extras.lem b/aarch64/mono/aarch64_extras.lem index 0a6bab11..d2c95b64 100644 --- a/aarch64/mono/aarch64_extras.lem +++ b/aarch64/mono/aarch64_extras.lem @@ -127,11 +127,15 @@ let undefined_range i j = return i let undefined_atom i = return i let undefined_nat () = return (0:ii) +val write_ram : forall 'rv 'a 'b 'c 'e. Size 'b, Size 'c => + integer -> integer -> mword 'a -> mword 'b -> mword 'c -> monad 'rv unit 'e let write_ram addrsize size hexRAM address value = write_mem_ea Write_plain address size >> write_mem_val value >>= fun _ -> return () +val read_ram : forall 'rv 'a 'b 'c 'e. Size 'b, Size 'c => + integer -> integer -> mword 'a -> mword 'b -> monad 'rv (mword 'c) 'e let read_ram addrsize size hexRAM address = (*let _ = prerr_endline ("Reading " ^ (stringFromInteger size) ^ " bytes from address " ^ (stringFromInteger (unsigned address))) in*) read_mem Read_plain address size |
