changeset 1923:42cd527a01b9

Remove mostly unused DM_GET_ADDR_{LO,HI} macros.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 28 Jun 2018 01:24:38 +0300
parents 3c6f638ce402
children 1c5ea4fa8788
files tools/lib64gfx.c tools/lib64gfx.h
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Thu Jun 28 01:24:07 2018 +0300
+++ b/tools/lib64gfx.c	Thu Jun 28 01:24:38 2018 +0300
@@ -142,8 +142,8 @@
 {
     return
         offs + 1 < buf->len &&
-        buf->data[offs    ] == DM_GET_ADDR_LO(addr) &&
-        buf->data[offs + 1] == DM_GET_ADDR_HI(addr);
+        buf->data[offs    ] == (addr & 0xff) &&
+        buf->data[offs + 1] == ((addr >> 8) & 0xff);
 }
 
 
--- a/tools/lib64gfx.h	Thu Jun 28 01:24:07 2018 +0300
+++ b/tools/lib64gfx.h	Thu Jun 28 01:24:38 2018 +0300
@@ -48,10 +48,6 @@
 #define C64_MAX_CHARS          256
 
 
-#define DM_GET_ADDR_LO(addr) ((addr) & 0xff)
-#define DM_GET_ADDR_HI(addr) (((addr) >> 8) & 0xff)
-
-
 // Different supported flags/modes
 enum
 {