From cdb349692a88d443bbc40231caeabe11689cbcab Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Sat, 11 Jun 2016 13:01:12 -0400 Subject: [PATCH] Fix regression in STORE16 --- vm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.h b/vm.h index 4091fe8..58f6733 100644 --- a/vm.h +++ b/vm.h @@ -239,7 +239,7 @@ void writeout_doublebyte(struct lilith* vm, uint32_t p, uint32_t value) { uint8_t uraw0, uraw1; uint32_t utmp = value; - utmp = utmp/0x10000; + utmp = utmp%0x10000; uraw1 = utmp%0x100; utmp = utmp/0x100; uraw0 = utmp%0x100;