From: matze Date: Fri, 26 Oct 2007 23:22:09 +0000 (+0000) Subject: videomode macro X-Git-Tag: rgb2rv6~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c70fe2620d6d0ac244351d8e45c3aff9a7a8b95b;p=c128-kasse videomode macro git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@72 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- 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_*/