X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.h;h=8679bf86a51ae1a81791b0803930af46f77ef94a;hb=c4938b26e71facac986fcccc2334223273293d86;hp=c1c45252a336de6ef0d286a25f07963c2e78e151;hpb=b3b84c37d78d8a3ec502cdf300b1abeb172b7905;p=16.git diff --git a/src/lib/modex16.h b/src/lib/modex16.h index c1c45252..8679bf86 100755 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -66,12 +66,13 @@ static struct pcxHeader { //192x144 = 12x9 //temp defines -#define TILEWH 16 +#define TILEWH 16 +#define TILEWHD TILEWH*2 #define QUADWH TILEWH/2 /* -========================== Types & Macros ==========================- */ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) -#define PLANE(x) (1<< (x&3)) +#define PLANE(x) (1 << ((x) & 3)) #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02) #define PALSIZE 768 @@ -118,6 +119,8 @@ void modexsetBaseXMode(); page_t modexDefaultPage(page_t *p); page_t modexNextPage(page_t *p); page_t modexNextPageFlexibleSize(page_t *p, word x, word y); +void modexCalcVmemRemain(video_t *video); +void modexHiganbanaPageSetup(video_t *video); void modexShowPage(page_t *page); void modexPanPage(page_t *page, int dx, int dy); void modexSelectPlane(byte plane); @@ -149,6 +152,8 @@ void modexPalOverscan(byte *p, word col); void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); void modexputPixel(page_t *page, int x, int y, byte color); byte modexgetPixel(page_t *page, int x, int y); + +#if 0 // not needed anymore. maybe good for reference purposes though. static inline void modexwritepixel(page_t *page, int x, int y, word addr, byte color) { /* Each address accesses four neighboring pixels, so set @@ -172,11 +177,13 @@ static inline byte modexreadPixel(page_t *page, int x, int y, word addr) outpw(GC_INDEX+1, x & 3); return vga_state.vga_graphics_ram[addr]; } +#endif + void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void modexpdump(page_t *pee); void modexcls(page_t *page, byte color, byte *Where); -//void modexWaitBorder(); +void modexWaitBorder(); void bios_cls(); #endif