From b96e31ce140d8b3fb8931c198bdb28b476fd6eef Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 24 Sep 2017 16:12:19 +0200 Subject: [PATCH] include peekpoke.h instead of re-defining the macros This is a prerequisite for the next step. --- include/general.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/general.h b/include/general.h index 768b01c..a32ddeb 100644 --- a/include/general.h +++ b/include/general.h @@ -1,5 +1,8 @@ #ifndef GENERAL_H_ #define GENERAL_H_ + +#include + typedef unsigned char BYTE; typedef enum { INPUT_TERMINATOR_RETURN = (1 << 0), @@ -12,10 +15,6 @@ char retry_or_quit(void); char *format_euro(char * s, int maxlen, int cent); void c128_perror(BYTE, char*); extern BYTE _oserror; -#define POKE(addr,val) (*(unsigned char*) (addr) = (val)) -#define POKEW(addr,val) (*(unsigned*) (addr) = (val)) -#define PEEK(addr) (*(unsigned char*) (addr)) -#define PEEKW(addr) (*(unsigned*) (addr)) /* C128 color codes, see PDF page 127 of * http://www.pagetable.com/docs/Commodore%20128%20Programmer%27s%20Reference%20Guide.pdf */ -- 2.39.5