From c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 12 Feb 2017 22:16:10 +0000 Subject: Fixed stupid mistake that broke some games. Other minor changes. --- source/fxemu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fxemu.h') 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(); -- cgit v1.2.3