#-zkl = current codepage
OFLAGS=-ot -ox -ob -oh# -or -om -ol -ol+
-FLAGS=-0 -d2 -wo $(OFLAGS) -zkl# -mh# -zdp# -zm# -zp16 -zq
+FLAGS=-0 -d2 -wo $(OFLAGS) -zkl -mh# -zdp# -zm# -zp16 -zq
DIRSEP=\
SRC=src$(DIRSEP)\r
SRCLIB=$(SRC)lib$(DIRSEP)
/* allocate the buffer */
//printf("%zu\n", _memmax());\r
bufSize = (/*(dword)*/result.width * result.height);
- result.data = malloc(bufSize);
+ result.data = (byte __near *)malloc(bufSize);
// result.data = (byte far *)_fmalloc(bufSize);
// result.data = (byte __huge *)halloc(bufSize, sizeof(byte));
printf("&bufSize=%p\n", &bufSize);
printf("&result.data=%p\n", result.data);
- printf("Size of block is %zu bytes\n", _fmsize(result.data));
+ printf("Size of block is %zu bytes\n", _msize(result.data));
printf("Size of bufSize is %zu bytes\n", bufSize);
printf("Size of result.width is %zu \n", result.width);
printf("Size of result.height is %zu \n", result.height);
#include "src/lib/lib_head.h"
\r
typedef struct {\r
- byte far *data;
+ byte near *data;
word width;\r
word height;\r
byte *palette;
modexDrawBmpRegion(page_t *page, int x, int y,
int rx, int ry, int rw, int rh, bitmap_t *bmp) {
word poffset = (word) page->data + y*(page->width/4) + x/4;
- byte far *data = bmp->data;//+bmp->offset;
+ byte *data = bmp->data;//+bmp->offset;
word bmpOffset = (word) data + ry * bmp->width + rx;
word width = rw;
word height = rh;
modexDrawSpriteRegion(page_t *page, int x, int y,
int rx, int ry, int rw, int rh, bitmap_t *bmp) {
word poffset = (word)page->data + y*(page->width/4) + x/4;
- byte far *data = bmp->data;//+bmp->offset;
+ byte *data = bmp->data;//+bmp->offset;
word bmpOffset = (word) data + ry * bmp->width + rx;
word width = rw;
word height = rh;