diff options
Diffstat (limited to 'source/spc700.c')
-rw-r--r-- | source/spc700.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/spc700.c b/source/spc700.c index eaf5467..c5ea4ef 100644 --- a/source/spc700.c +++ b/source/spc700.c @@ -1918,15 +1918,18 @@ void Apu8F(void) void Apu9E(void) { + uint32_t i; + uint32_t yva; + uint32_t x; + /* DIV YA,X */ if ((IAPU.Registers.X & 0x0f) <= (IAPU.Registers.YA.B.Y & 0x0f)) APUSetHalfCarry(); else APUClearHalfCarry(); - uint32_t yva = IAPU.Registers.YA.W; - uint32_t x = IAPU.Registers.X << 9; - uint32_t i; + yva = IAPU.Registers.YA.W; + x = IAPU.Registers.X << 9; for (i = 0 ; i < 9 ; ++i) { |