Fixed the S3 ViRGE new MMIO mapping;
Ported over the September 17th PCem ATi Korean VGA patch from greatpsycho.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* ATI 28800 emulation (VGA Charger and Korean VGA)
|
||||
*
|
||||
* Version: @(#)vid_ati28800.c 1.0.22 2018/09/19
|
||||
* Version: @(#)vid_ati28800.c 1.0.23 2018/09/21
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -234,7 +234,7 @@ void ati28800k_out(uint16_t addr, uint8_t val, void *p)
|
||||
break;
|
||||
case 0x3DE:
|
||||
ati28800->in_get_korean_font_kind_set = 0;
|
||||
if(ati28800->get_korean_font_enabled && (ati28800->regs[0xBF] & 0x20))
|
||||
if(ati28800->get_korean_font_enabled)
|
||||
{
|
||||
if((ati28800->get_korean_font_base & 0x7F) > 0x20 && (ati28800->get_korean_font_base & 0x7F) < 0x7F)
|
||||
fontdatksc5601_user[(ati28800->get_korean_font_kind & 4) * 24 + (ati28800->get_korean_font_base & 0x7F) - 0x20].chr[ati28800->get_korean_font_index] = val;
|
||||
@@ -348,7 +348,7 @@ uint8_t ati28800k_in(uint16_t addr, void *p)
|
||||
switch (addr)
|
||||
{
|
||||
case 0x3DE:
|
||||
if (ati28800->get_korean_font_enabled && (ati28800->regs[0xBF] & 0x20))
|
||||
if (ati28800->get_korean_font_enabled)
|
||||
{
|
||||
switch(ati28800->get_korean_font_kind >> 8)
|
||||
{
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* S3 ViRGE emulation.
|
||||
*
|
||||
* Version: @(#)vid_s3_virge.c 1.0.14 2018/09/20
|
||||
* Version: @(#)vid_s3_virge.c 1.0.15 2018/09/21
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -777,7 +777,7 @@ static void s3_virge_updatemapping(virge_t *virge)
|
||||
mem_mapping_disable(&virge->mmio_mapping);
|
||||
|
||||
/* New MMIO. */
|
||||
if ((svga->crtc[0x53] & 0x18) == 0x18) /*New MMIO*/
|
||||
if (svga->crtc[0x53] & 0x08) /*New MMIO*/
|
||||
mem_mapping_set_addr(&virge->new_mmio_mapping, virge->linear_base + 0x1000000, 0x10000);
|
||||
else
|
||||
mem_mapping_disable(&virge->new_mmio_mapping);
|
||||
|
Reference in New Issue
Block a user