src/emu/video/pc_vga.c
| r14270 | r14271 | |
| 498 | 498 | addr %= vga.svga_intf.vram_size; |
| 499 | 499 | for (pos=curr_addr, c=0, column=0; column<VGA_COLUMNS; column++, c+=8, pos+=0x8) |
| 500 | 500 | { |
| 501 | | if(pos + 0x08 > 0x80000) |
| 501 | if(pos + 0x08 > 0x100000) |
| 502 | 502 | return; |
| 503 | 503 | |
| 504 | 504 | for(xi=0;xi<8;xi++) |
| 505 | 505 | { |
| 506 | 506 | if(!machine.primary_screen->visible_area().contains(c+xi, line + yi)) |
| 507 | 507 | continue; |
| 508 | | bitmapline[c+xi] = machine.pens[vga.memory[(pos+(xi))|0x80000]]; |
| 508 | bitmapline[c+xi] = machine.pens[vga.memory[(pos+(xi))]]; |
| 509 | 509 | } |
| 510 | 510 | } |
| 511 | 511 | } |
| r14270 | r14271 | |
| 1652 | 1652 | if(svga.rgb8_en) |
| 1653 | 1653 | { |
| 1654 | 1654 | offset &= 0xffff; |
| 1655 | | return vga.memory[(offset+svga.bank_r*0x10000) | 0x80000]; |
| 1655 | return vga.memory[(offset+svga.bank_r*0x10000)]; |
| 1656 | 1656 | } |
| 1657 | 1657 | |
| 1658 | 1658 | return vga_mem_r(space,offset); |
| r14270 | r14271 | |
| 1663 | 1663 | if(svga.rgb8_en) |
| 1664 | 1664 | { |
| 1665 | 1665 | offset &= 0xffff; |
| 1666 | | vga.memory[(offset+svga.bank_w*0x10000) | 0x80000] = data; |
| 1666 | vga.memory[(offset+svga.bank_w*0x10000)] = data; |
| 1667 | 1667 | } |
| 1668 | 1668 | else |
| 1669 | 1669 | vga_mem_w(space,offset,data); |