Add mode number
X and Y need to be 16bit
#ifdef CONFIG_NC100
static struct display ncdisplay = {
+ 0,
480, 64,
512, 64,
0xFF, 0xFF, /* For now */
};
#else
static struct display ncdisplay = {
+ 0,
480, 128,
512, 128,
0xFF, 0xFF, /* For now */
FMT_MONO_WB,
HW_UNACCEL,
+ GFX_TEXT,
0,
- 0,
- GFX_DRAW
+ GFX_DRAW,
};
#endif
/* Note: we assume we will not map the screen over the buffers */
tmp = (uint8_t *)tmpbuf();
l = ugetw(ptr);
- if (l < 2 || l > 512)
+ if (l < 6 || l > 512)
goto bad;
if (uget(tmp, ptr + 2, l))
goto bad2;
push af
ld e,(hl)
inc hl
+ inc hl
ld d,(hl)
+ inc hl
+ inc hl
call addr_de ; turn DE into screen address (HL is kept)
nextline:
push de