From 4cccc39430974ad3747574fe48f5c04e28167f54 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 15 Feb 2016 10:26:11 -0600 Subject: [PATCH] tweak being made wwww going to port p16 code wwww --- tweak.c | 17 +++++++++++++++++ tweak.h | 2 +- types.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100755 types.h diff --git a/tweak.c b/tweak.c index 4e89b13..5b64831 100755 --- a/tweak.c +++ b/tweak.c @@ -1,4 +1,5 @@ #include "tweak.h" +#include "types.h" void tw_opengraph2() { __asm{ @@ -29,3 +30,19 @@ __asm{ out dx, ax ; 384 wide } } + +void tw_setrgbpalette(byte *p) +{ + int i; +// modexWaitBorder(); + outp(PAL_WRITE_REG, 0); /* start at the beginning of palette */ +// for(i=0; i, or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ +/* + * Just some handy typedefs that make it easier to think about the low + * level code + */ + +#ifndef _TYPE_H_ +#define _TYPE_H_ + +typedef unsigned char byte; +typedef unsigned short word; +typedef unsigned long dword; +typedef signed char sbyte; +typedef signed short sword; +typedef signed long sdword; + +typedef unsigned int iword; +typedef signed int siword; + +typedef enum {false,true} boolean; + +#endif/*_TYPE_H_*/ -- 2.39.5