Previous 15994 Revisions Next

r2723 Saturday 24th May, 2008 at 15:12:17 UTC by Miodrag Milanović
[GALAXYP] Adding hack to fix video output
[src/mess/video]galaxy.c

src/mess/video/galaxy.c
r2722r2723
4343UINT32 gal_cnt = 0;
4444static UINT8 code = 0;
4545static UINT8 first = 0;
46
46UINT32 start_addr = 0;
4747emu_timer *gal_video_timer = NULL;
4848
4949TIMER_CALLBACK( gal_video )
r2722r2723
9696            y = gal_cnt / 48 - 2;
9797            x = (gal_cnt % 48) * 8;
9898           
99            /* hack - until calc of R is fixed in Z80 */
100            if (x==11*8 && y==0) {
101               start_addr = addr;
102            }
103            if ((x/8 >=11) && (x/8<44)) {
104               code = program_read_byte(start_addr + y * 32 + (gal_cnt % 48)-11);
105            } else {
106               code = 0xff;
107            }
108            /* end of hack */
109           
99110            *BITMAP_ADDR16(tmpbitmap, y, x ) = (code >> 0) & 1; x++;
100111            *BITMAP_ADDR16(tmpbitmap, y, x ) = (code >> 1) & 1; x++;
101112            *BITMAP_ADDR16(tmpbitmap, y, x ) = (code >> 2) & 1; x++;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team