aboutsummaryrefslogtreecommitdiff
path: root/source/getset.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/getset.h')
-rw-r--r--source/getset.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/getset.h b/source/getset.h
index 05247c9..2bba5b1 100644
--- a/source/getset.h
+++ b/source/getset.h
@@ -494,11 +494,11 @@ static inline void S9xSetWord(uint16 Word, uint32 Address)
/* BJ: no FAST_LSB_WORD_ACCESS here, since if Memory.SRAMMask=0x7ff
* then the high byte doesn't follow the low byte. */
*(Memory.SRAM +
- (((Address & 0x7fff) - 0x6000 +
- ((Address & 0xf0000) >> 3) & Memory.SRAMMask))) = (uint8) Word;
+ (((((Address & 0x7fff) - 0x6000) +
+ ((Address & 0xf0000) >> 3)) & Memory.SRAMMask))) = (uint8) Word;
*(Memory.SRAM +
- ((((Address + 1) & 0x7fff) - 0x6000 +
- (((Address + 1) & 0xf0000) >> 3) & Memory.SRAMMask))) = (uint8)(Word >> 8);
+ ((((((Address + 1) & 0x7fff) - 0x6000) +
+ (((Address + 1) & 0xf0000) >> 3)) & Memory.SRAMMask))) = (uint8)(Word >> 8);
CPU.SRAMModified = TRUE;
}
return;