modexDrawSpriteRegion(page_t *page, int x, int y,\r
int rx, int ry, int rw, int rh, bitmap_t *bmp) {\r
word poffset = (word)page->data + y*(page->width/4) + x/4;\r
- byte *data = bmp->data;//+bmp->offset;\r
+ byte huge *data = bmp->data;//+bmp->offset;\r
word bmpOffset = (word) data + ry * bmp->width + rx;\r
word width = rw;\r
word height = rh;\r
MOV AX, height ; start the row counter\r
MOV rowCounter, AX ;\r
MOV DI, poffset ; go to the first pixel\r
-// MOV SI, bmpOffset ; go to the bmp pixel\r
- MOV DI, bmpOffset ; go to the bmp pixel\r
+ MOV SI, bmpOffset ; go to the bmp pixel\r
ROW_LOOP:\r
MOV CX, width ; count the columns\r
SCAN_LOOP:\r