[OpenGOAL] make multiplication/divsion like GOAL and support in decompiler (#483)

* support in compiler

* multiplication in the decompiler

* update divisions
This commit is contained in:
water111
2021-05-14 18:43:12 -04:00
committed by GitHub
parent b3eb05e37f
commit d9f9d36f37
31 changed files with 441 additions and 326 deletions
@@ -575,7 +575,7 @@
result
(the-as
int
(+ (+ (-> next-char-2 0) -55) (the-as uint (shl result 4)))
(+ (+ (-> next-char-2 0) -55) (the-as uint (* result 16)))
)
)
)
@@ -589,14 +589,14 @@
result
(the-as
int
(+ (+ (-> next-char-2 0) -87) (the-as uint (shl result 4)))
(+ (+ (-> next-char-2 0) -87) (the-as uint (* result 16)))
)
)
(set!
result
(the-as
int
(+ (+ (-> next-char-2 0) -48) (the-as uint (shl result 4)))
(+ (+ (-> next-char-2 0) -48) (the-as uint (* result 16)))
)
)
)
@@ -615,7 +615,7 @@
)
(set!
result
(the-as int (+ (+ (-> a0-4 0) -48) (the-as uint (shl result 1))))
(the-as int (+ (+ (-> a0-4 0) -48) (the-as uint (* result 2))))
)
(set! a0-4 (&-> a0-4 1))
)