From c70fe2620d6d0ac244351d8e45c3aff9a7a8b95b Mon Sep 17 00:00:00 2001 From: matze Date: Fri, 26 Oct 2007 23:22:09 +0000 Subject: [PATCH] videomode macro git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@72 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- include/general.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/general.h b/include/general.h index 7fb1338..0ddefcf 100644 --- a/include/general.h +++ b/include/general.h @@ -9,4 +9,6 @@ extern BYTE _oserror; #define POKEW(addr,val) (*(unsigned*) (addr) = (val)) #define PEEK(addr) (*(unsigned char*) (addr)) #define PEEKW(addr) (*(unsigned*) (addr)) + +#define VIDEOMODE (((* (BYTE *)0xD7) == 0x80) ? 80 : 40) #endif /*GENERAL_H_*/ -- 2.39.5