Fix regression in STORE16

This commit is contained in:
Jeremiah Orians 2016-06-11 13:01:12 -04:00
parent e58abb8fb8
commit cdb349692a
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
1 changed files with 1 additions and 1 deletions

2
vm.h
View File

@ -239,7 +239,7 @@ void writeout_doublebyte(struct lilith* vm, uint32_t p, uint32_t value)
{ {
uint8_t uraw0, uraw1; uint8_t uraw0, uraw1;
uint32_t utmp = value; uint32_t utmp = value;
utmp = utmp/0x10000; utmp = utmp%0x10000;
uraw1 = utmp%0x100; uraw1 = utmp%0x100;
utmp = utmp/0x100; utmp = utmp/0x100;
uraw0 = utmp%0x100; uraw0 = utmp%0x100;