src/mess/drivers/pc6001.c
| r8729 | r8730 | |
| 146 | 146 | pc6001_video_ram = auto_alloc_array(machine, UINT8, 0x2000); //0x400? We'll see... |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | | /* FIXME: colors of this aren't 100% accurate */ |
| 150 | 149 | static void draw_bitmap_1bpp(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr) |
| 151 | 150 | { |
| 152 | 151 | int x,y,xi; |
| r8729 | r8730 | |
| 340 | 339 | |
| 341 | 340 | static VIDEO_UPDATE( pc6001m2 ) |
| 342 | 341 | { |
| 343 | | int tile,attr,x,y; |
| 342 | int x,y,tile,attr; |
| 344 | 343 | |
| 345 | | attr = pc6001_video_ram[0]; |
| 346 | | |
| 347 | 344 | if(exgfx_mode) |
| 348 | 345 | { |
| 349 | 346 | int xi,yi,pen,fgcol,bgcol,color; |
| r8729 | r8730 | |
| 353 | 350 | { |
| 354 | 351 | for(x=0;x<40;x++) |
| 355 | 352 | { |
| 356 | | tile = pc6001_video_ram[(x+(y*40))+0x400]; |
| 353 | /* |
| 354 | exgfx attr format: |
| 355 | x--- ---- rom bank select |
| 356 | -xxx ---- bg color |
| 357 | ---- xxxx fg color |
| 358 | Note that the exgfx banks a different gfx ROM |
| 359 | */ |
| 360 | tile = pc6001_video_ram[(x+(y*40))+0x400] + 0x200; |
| 357 | 361 | attr = pc6001_video_ram[(x+(y*40)) & 0x3ff]; |
| 362 | tile+= ((attr & 0x80) << 1); |
| 358 | 363 | |
| 359 | 364 | for(yi=0;yi<12;yi++) |
| 360 | 365 | { |
| r8729 | r8730 | |
| 375 | 380 | } |
| 376 | 381 | } |
| 377 | 382 | else |
| 383 | { |
| 384 | attr = pc6001_video_ram[0]; |
| 378 | 385 | pc6001_screen_draw(screen->machine,bitmap,cliprect,0); |
| 386 | } |
| 379 | 387 | |
| 380 | 388 | return 0; |
| 381 | 389 | } |