blob: a72eb3f31ec10b2a37ef8d1021a644a5070f04f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
val main : unit -> unit effect {barr, eamem, escape, exmem, rmem, rreg, wmv, wreg}
function main () = {
// PC = __GetSlice_int(64, elf_entry(), 0);
PC = zero_extend(0x1000, 64);
print_bits("PC = ", PC);
try {
init_platform();
init_sys();
loop()
} catch {
Error_not_implemented(s) => print_string("Error: Not implemented: ", s),
Error_internal_error() => print("Error: internal error")
}
}
|