src/mess/drivers/pc6001.c
| r8701 | r8702 | |
| 19 | 19 | B) It's easier to me to see what the attribute vram does since I don't |
| 20 | 20 | have any docs atm. |
| 21 | 21 | |
| 22 | TODO (game specific): |
| 23 | - 3D Asteroid Fire (and others): inputs doesn't work during gameplay; |
| 24 | - Arm Wrestling: returns an "?OM Error" during loading, it seems to be a N66 |
| 25 | BASIC -> PC-6001Mk2 game actually; |
| 26 | |
| 22 | 27 | ================================================================================== |
| 23 | 28 | |
| 24 | 29 | PC-6001 (1981-09): |
| r8701 | r8702 | |
| 126 | 131 | pc6001_video_ram = auto_alloc_array(machine, UINT8, 0x2000); //0x400? We'll see... |
| 127 | 132 | } |
| 128 | 133 | |
| 134 | /* FIXME: colors of this aren't 100% accurate */ |
| 129 | 135 | static void draw_bitmap_1bpp(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr) |
| 130 | 136 | { |
| 131 | 137 | int x,y,xi; |
| r8701 | r8702 | |
| 256 | 262 | { |
| 257 | 263 | for(x=0;x<320;x++) |
| 258 | 264 | { |
| 259 | | if(attr & 0x80 && (!(attr & 0x10))) |
| 265 | if((attr & 0x90) == 0x80) //2bpp |
| 260 | 266 | color = ((attr & 2)<<1) + 8; |
| 267 | else if((attr & 0x90) == 0x90) //1bpp |
| 268 | color = (attr & 2) ? 7 : 2; //FIXME: colors aren't right there either |
| 261 | 269 | else |
| 262 | 270 | color = 0; //FIXME: other modes not yet checked |
| 263 | 271 | |