module Mips:MIPS instructionssig
..end
type
mips =
| |
I of |
(* | instruction with one immediate value as input (example: li ) | *) |
| |
R of |
(* | instruction with one register as input (example: neg ) | *) |
| |
RI of |
(* | instruction with one register and one immediate value as input (example: addi ) | *) |
| |
RR of |
(* | instruction with two registers as input (example: add ) | *) |
| |
LW of |
(* | LW(r,s,i) corresponds to lw r, i(s) | *) |
| |
SW of |
(* | SW(r,s,i) corresponds to sw r, i(s) | *) |
| |
Syscall |
(* | syscall instruction | *) |
val print_mips : Pervasives.out_channel -> mips -> unit