aboutsummaryrefslogtreecommitdiff
path: root/source/fxemu.h
diff options
context:
space:
mode:
authorJoão Silva2017-02-12 22:16:10 +0000
committerJoão Silva2017-02-12 22:16:10 +0000
commitc3fadd966ae2a65a683d6cc0b07a26c2980f6bbd (patch)
tree34346e131ec88be8715ceb44b1c984de44d6f8e9 /source/fxemu.h
parentfb2517282da2fdfc26e58207bbb8e0a8bca35be2 (diff)
downloadsnes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.tar.gz
snes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.tar.bz2
snes9x2005-c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd.zip
Fixed stupid mistake that broke some games. Other minor changes.
Diffstat (limited to 'source/fxemu.h')
-rw-r--r--source/fxemu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fxemu.h b/source/fxemu.h
index 2176976..0012c33 100644
--- a/source/fxemu.h
+++ b/source/fxemu.h
@@ -50,11 +50,11 @@ extern void fx_updateRamBank(uint8_t Byte);
#define FX_FLAG_ROM_BUFFER 0x02
/* Return codes from FxEmulate(), FxStepInto() or FxStepOver() */
-#define FX_BREAKPOINT -1
+#define FX_BREAKPOINT -1
#define FX_ERROR_ILLEGAL_ADDRESS -2
/* Return the number of bytes in an opcode */
-#define OPCODE_BYTES(op) ((((op)>=0x05&&(op)<=0xf)||((op)>=0xa0&&(op)<=0xaf))?2:(((op)>=0xf0)?3:1))
+#define OPCODE_BYTES(op) ((((op) >= 0x05 && (op) <= 0xf) || ((op) >= 0xa0 && (op) <= 0xaf)) ? 2 : (((op) >= 0xf0) ? 3 : 1))
extern void fx_computeScreenPointers();