From 0d5a9d6ecd8710040b8640af457daf23d0311952 Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Fri, 17 Dec 2021 09:31:23 +0100 Subject: [PATCH] fix macro --- lib/tms9918.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tms9918.h b/lib/tms9918.h index 5559b03..723c5e7 100644 --- a/lib/tms9918.h +++ b/lib/tms9918.h @@ -88,8 +88,8 @@ const word TMS_SPRITE_PATTERNS = 0x1800; // read/write to TMS9918 macros #define TMS_WRITE_CTRL_PORT(a) (*VDP_REG=(byte)(a)) #define TMS_WRITE_DATA_PORT(a) (*VDP_DATA=(byte)(a)) -#define TMS_READ_CTRL_PORT (*VDP_REG); -#define TMS_READ_DATA_PORT (*VDP_DATA); +#define TMS_READ_CTRL_PORT (*VDP_REG) +#define TMS_READ_DATA_PORT (*VDP_DATA) // buffer containing the last register values, because TMS registers are write only byte tms_regs_latch[8];