source: Deliverables/D4.1/test.ml @ 145

Last change on this file since 145 was 145, checked in by mulligan, 10 years ago

Bug in LCALL fixed.

File size: 442 bytes
Line 
1let hex = IntelHex.intel_hex_of_file "Test.hex" in
2let mem = IntelHex.process_intel_hex hex in
3let status = ASMInterpret.load_mem mem ASMInterpret.initialize in
4let observe status =
5 let pc = status.ASMInterpret.pc in
6 let instr,_,_ = ASMInterpret.fetch status.ASMInterpret.code_memory pc in
7   prerr_string (BitVectors.hex_string_of_vect pc) ;
8   prerr_endline (": " ^ Pretty.pp_instruction instr)
9in
10 ASMInterpret.execute observe status
11;;
Note: See TracBrowser for help on using the repository browser.