src/mess/drivers/pc6001.c
| r15836 | r15837 | |
| 25 | 25 | but, according to an original video reference that I've seen, that screen should actually some kind of weird garbage on it ... |
| 26 | 26 | - AX6 - Powered Knight: doesn't work too well, according to the asm code it asks the player to press either 'B' or 'C' then a number but |
| 27 | 27 | nothing is shown on screen, other emus behaves the same, bad dump? |
| 28 | - Dawn Patrol (cart): presumably too slow; |
| 28 | 29 | (Mk2 mode 5 games) |
| 29 | 30 | - 3D Golf Simulation Super Version: gameplay / inputs looks broken |
| 30 | 31 | - American Truck: Screen is offset at the loading screen, loading bug? |
| r15836 | r15837 | |
| 267 | 268 | }; |
| 268 | 269 | col_setting = machine.root_device().ioport("MODE4_DSW")->read() & 7; |
| 269 | 270 | |
| 271 | if((attr & 0x0c) != 0x0c) |
| 272 | popmessage("Mode 4 vram attr != 0x0c, contact MESSdev"); |
| 273 | |
| 270 | 274 | for(y=0;y<192;y++) |
| 271 | 275 | { |
| 272 | 276 | for(x=0;x<32;x++) |
| r15836 | r15837 | |
| 310 | 314 | int w = (shrink_x == 8) ? 32 : 16; |
| 311 | 315 | int col_bank = ((attr & 2)<<1); |
| 312 | 316 | |
| 313 | | for(y=0;y<(192/shrink_y);y++) |
| 317 | if(attr & 4) |
| 314 | 318 | { |
| 315 | | for(x=0;x<w;x++) |
| 319 | for(y=0;y<(192/shrink_y);y++) |
| 316 | 320 | { |
| 317 | | int tile = state->m_video_ram[(x+(y*32))+0x200]; |
| 321 | for(x=0;x<w;x++) |
| 322 | { |
| 323 | int tile = state->m_video_ram[(x+(y*32))+0x200]; |
| 318 | 324 | |
| 319 | | for(yi=0;yi<shrink_y;yi++) |
| 325 | for(yi=0;yi<shrink_y;yi++) |
| 326 | { |
| 327 | for(xi=0;xi<shrink_x;xi++) |
| 328 | { |
| 329 | int i; |
| 330 | i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1; |
| 331 | color = ((tile >> i) & 3)+8; |
| 332 | color+= col_bank; |
| 333 | |
| 334 | bitmap.pix16(((y*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color]; |
| 335 | } |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | } |
| 340 | else /* TODO: clean this up */ |
| 341 | { |
| 342 | for(y=0;y<(192/shrink_y);y+=3) |
| 343 | { |
| 344 | for(x=0;x<w;x++) |
| 320 | 345 | { |
| 321 | | for(xi=0;xi<shrink_x;xi++) |
| 346 | int tile = state->m_video_ram[(x+((y/3)*32))+0x200]; |
| 347 | |
| 348 | for(yi=0;yi<shrink_y;yi++) |
| 322 | 349 | { |
| 323 | | int i; |
| 324 | | i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1; |
| 325 | | color = ((tile >> i) & 3)+8; |
| 326 | | color+= col_bank; |
| 350 | for(xi=0;xi<shrink_x;xi++) |
| 351 | { |
| 352 | int i; |
| 353 | i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1; |
| 354 | color = ((tile >> i) & 3)+8; |
| 355 | color+= col_bank; |
| 327 | 356 | |
| 328 | | bitmap.pix16(((y*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color]; |
| 357 | bitmap.pix16((((y+0)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color]; |
| 358 | bitmap.pix16((((y+1)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color]; |
| 359 | bitmap.pix16((((y+2)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color]; |
| 360 | } |
| 329 | 361 | } |
| 330 | 362 | } |
| 331 | 363 | } |