Replace equipment with u16

This commit is contained in:
Aly 2021-03-09 16:39:59 -08:00
parent 2cb81461d8
commit 1628d2ea55
3 changed files with 304 additions and 66 deletions

View file

@ -38,6 +38,10 @@ instance show u16 begin
let show (U16 x) = (show x) ^ "_u16"
end
instance decode u16 begin
let decode addr = U16 (Dolphin.read_value_16 addr)
end
type s16 =
S16 of int