src/mess/drivers/x1.c
| r5716 | r5717 | |
| 896 | 896 | |
| 897 | 897 | pcg_offset &= 0x7ff; |
| 898 | 898 | |
| 899 | | gfx_element_mark_dirty(space->machine->gfx[4], pcg_offset >> 3); |
| 900 | | gfx_element_mark_dirty(space->machine->gfx[5], pcg_offset >> 3); |
| 901 | | gfx_element_mark_dirty(space->machine->gfx[6], pcg_offset >> 3); |
| 902 | | gfx_element_mark_dirty(space->machine->gfx[7], pcg_offset >> 3); |
| 903 | | |
| 899 | gfx_element_mark_dirty(space->machine->gfx[1], pcg_offset >> 3); |
| 904 | 900 | } |
| 905 | 901 | else |
| 906 | 902 | { |
| r5716 | r5717 | |
| 912 | 908 | |
| 913 | 909 | pcg_offset &= 0x7ff; |
| 914 | 910 | |
| 915 | | gfx_element_mark_dirty(space->machine->gfx[4], pcg_offset >> 3); |
| 916 | | gfx_element_mark_dirty(space->machine->gfx[5], pcg_offset >> 3); |
| 917 | | gfx_element_mark_dirty(space->machine->gfx[6], pcg_offset >> 3); |
| 918 | | gfx_element_mark_dirty(space->machine->gfx[7], pcg_offset >> 3); |
| 911 | gfx_element_mark_dirty(space->machine->gfx[1], pcg_offset >> 3); |
| 919 | 912 | |
| 920 | 913 | pcg_index[addr-1]++; |
| 921 | 914 | pcg_index[addr-1]&=7; |
| r5716 | r5717 | |
| 1640 | 1633 | 8*8 |
| 1641 | 1634 | }; |
| 1642 | 1635 | |
| 1643 | | static const gfx_layout x1_chars_8wx8 = |
| 1636 | static const gfx_layout x1_chars_8x16 = |
| 1644 | 1637 | { |
| 1645 | | 16,8, |
| 1646 | | RGN_FRAC(1,1), |
| 1647 | | 1, |
| 1648 | | { 0 }, |
| 1649 | | { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 }, |
| 1650 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 1651 | | 8*8 |
| 1652 | | }; |
| 1653 | | |
| 1654 | | static const gfx_layout x1_chars_8x8w = |
| 1655 | | { |
| 1656 | 1638 | 8,16, |
| 1657 | 1639 | RGN_FRAC(1,1), |
| 1658 | 1640 | 1, |
| 1659 | 1641 | { 0 }, |
| 1660 | 1642 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 1661 | | { 0*8, 0*8, 1*8, 1*8, 2*8, 2*8, 3*8, 3*8, 4*8, 4*8, 5*8, 5*8, 6*8, 6*8, 7*8, 7*8 }, |
| 1662 | | 8*8 |
| 1643 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,8*8,9*8,10*8,11*8,12*8,13*8,14*8,15*8 }, |
| 1644 | 8*16 |
| 1663 | 1645 | }; |
| 1664 | 1646 | |
| 1665 | | static const gfx_layout x1_chars_8wx8w = |
| 1666 | | { |
| 1667 | | 16,16, |
| 1668 | | RGN_FRAC(1,1), |
| 1669 | | 1, |
| 1670 | | { 0 }, |
| 1671 | | { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 }, |
| 1672 | | { 0*8, 0*8, 1*8, 1*8, 2*8, 2*8, 3*8, 3*8, 4*8, 4*8, 5*8, 5*8, 6*8, 6*8, 7*8, 7*8 }, |
| 1673 | | 8*8 |
| 1674 | | }; |
| 1675 | | |
| 1676 | 1647 | static const gfx_layout x1_pcg_8x8 = |
| 1677 | 1648 | { |
| 1678 | 1649 | 8,8, |
| r5716 | r5717 | |
| 1684 | 1655 | 8*8 |
| 1685 | 1656 | }; |
| 1686 | 1657 | |
| 1687 | | static const gfx_layout x1_pcg_8wx8 = |
| 1688 | | { |
| 1689 | | 16,8, |
| 1690 | | RGN_FRAC(1,3), |
| 1691 | | 3, |
| 1692 | | { RGN_FRAC(2,3),RGN_FRAC(1,3),RGN_FRAC(0,3) }, |
| 1693 | | { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 }, |
| 1694 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 1695 | | 8*8 |
| 1696 | | }; |
| 1697 | | |
| 1698 | | static const gfx_layout x1_pcg_8x8w = |
| 1699 | | { |
| 1700 | | 8,16, |
| 1701 | | RGN_FRAC(1,3), |
| 1702 | | 3, |
| 1703 | | { RGN_FRAC(2,3),RGN_FRAC(1,3),RGN_FRAC(0,3) }, |
| 1704 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 1705 | | { 0*8, 0*8, 1*8, 1*8, 2*8, 2*8, 3*8, 3*8, 4*8, 4*8, 5*8, 5*8, 6*8, 6*8, 7*8, 7*8 }, |
| 1706 | | 8*8 |
| 1707 | | }; |
| 1708 | | |
| 1709 | | static const gfx_layout x1_pcg_8wx8w = |
| 1710 | | { |
| 1711 | | 16,16, |
| 1712 | | RGN_FRAC(1,3), |
| 1713 | | 3, |
| 1714 | | { RGN_FRAC(2,3),RGN_FRAC(1,3),RGN_FRAC(0,3) }, |
| 1715 | | { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 }, |
| 1716 | | { 0*8, 0*8, 1*8, 1*8, 2*8, 2*8, 3*8, 3*8, 4*8, 4*8, 5*8, 5*8, 6*8, 6*8, 7*8, 7*8 }, |
| 1717 | | 8*8 |
| 1718 | | }; |
| 1719 | | |
| 1720 | 1658 | static const gfx_layout x1_chars_16x16 = |
| 1721 | 1659 | { |
| 1722 | 1660 | 16,16, |
| r5716 | r5717 | |
| 1730 | 1668 | |
| 1731 | 1669 | /* decoded for debugging purpose, this will be nuked in the end... */ |
| 1732 | 1670 | static GFXDECODE_START( x1 ) |
| 1733 | | GFXDECODE_ENTRY( "cgrom", 0x00000, x1_chars_8x8, 0x200, 0x20 ) |
| 1734 | | GFXDECODE_ENTRY( "cgrom", 0x00000, x1_chars_8wx8, 0x200, 0x20 ) |
| 1735 | | GFXDECODE_ENTRY( "cgrom", 0x00000, x1_chars_8x8w, 0x200, 0x20 ) |
| 1736 | | GFXDECODE_ENTRY( "cgrom", 0x00000, x1_chars_8wx8w, 0x200, 0x20 ) |
| 1737 | | GFXDECODE_ENTRY( "pcg", 0x00000, x1_pcg_8x8, 0x000, 1 ) |
| 1738 | | GFXDECODE_ENTRY( "pcg", 0x00000, x1_pcg_8wx8, 0x000, 1 ) |
| 1739 | | GFXDECODE_ENTRY( "pcg", 0x00000, x1_pcg_8x8w, 0x000, 1 ) |
| 1740 | | GFXDECODE_ENTRY( "pcg", 0x00000, x1_pcg_8wx8w, 0x000, 1 ) |
| 1741 | | GFXDECODE_ENTRY( "cgrom", 0x01800, x1_chars_16x16, 0, 0x20 ) //only x1turboz uses this so far |
| 1742 | | GFXDECODE_ENTRY( "kanji", 0x27000, x1_chars_16x16, 0, 0x20 ) //needs to be checked when the ROM will be redumped |
| 1671 | GFXDECODE_ENTRY( "cgrom", 0x00000, x1_chars_8x8, 0x200, 0x20 ) |
| 1672 | GFXDECODE_ENTRY( "pcg", 0x00000, x1_pcg_8x8, 0x000, 1 ) |
| 1673 | GFXDECODE_ENTRY( "cgrom", 0x01800, x1_chars_8x16, 0x200, 0x20 ) |
| 1674 | GFXDECODE_ENTRY( "kanji", 0x27000, x1_chars_16x16, 0, 0x20 ) //needs to be checked when the ROM will be redumped |
| 1743 | 1675 | GFXDECODE_END |
| 1744 | 1676 | |
| 1745 | 1677 | /************************************* |
| r5716 | r5717 | |
| 1866 | 1798 | |
| 1867 | 1799 | for(i=0;i<0x0400;i++) |
| 1868 | 1800 | { |
| 1869 | | gfx_element_mark_dirty(machine->gfx[4], i); |
| 1870 | | gfx_element_mark_dirty(machine->gfx[5], i); |
| 1871 | | gfx_element_mark_dirty(machine->gfx[6], i); |
| 1872 | | gfx_element_mark_dirty(machine->gfx[7], i); |
| 1801 | gfx_element_mark_dirty(machine->gfx[1], i); |
| 1873 | 1802 | } |
| 1874 | 1803 | |
| 1875 | 1804 | /* X1 Turbo specific */ |
| r5716 | r5717 | |
| 2032 | 1961 | ROM_LOAD("fnt0808.x1", 0x00000, 0x00800, CRC(e3995a57) SHA1(1c1a0d8c9f4c446ccd7470516b215ddca5052fb2) ) |
| 2033 | 1962 | ROM_RELOAD( 0x00800, 0x00800) |
| 2034 | 1963 | ROM_RELOAD( 0x01000, 0x00800) |
| 1964 | ROM_LOAD("fnt0816.x1", 0x01800, 0x1000, BAD_DUMP CRC(34818d54) SHA1(2c5fdd73249421af5509e48a94c52c4e423402bf) ) |
| 2035 | 1965 | |
| 2036 | 1966 | ROM_REGION(0x4ac00, "kanji", ROMREGION_ERASEFF) |
| 2037 | 1967 | ROM_END |
| r5716 | r5717 | |
| 2048 | 1978 | |
| 2049 | 1979 | ROM_REGION(0x1800, "pcg", ROMREGION_ERASEFF) |
| 2050 | 1980 | |
| 2051 | | ROM_REGION(0x1800, "cgrom", 0) |
| 1981 | ROM_REGION(0x2800, "cgrom", 0) |
| 2052 | 1982 | ROM_LOAD("fnt0808.x1", 0x00000, 0x00800, CRC(e3995a57) SHA1(1c1a0d8c9f4c446ccd7470516b215ddca5052fb2) ) |
| 2053 | 1983 | ROM_RELOAD( 0x00800, 0x00800) |
| 2054 | 1984 | ROM_RELOAD( 0x01000, 0x00800) |
| 1985 | ROM_LOAD("fnt0816.x1", 0x01800, 0x01000, BAD_DUMP CRC(34818d54) SHA1(2c5fdd73249421af5509e48a94c52c4e423402bf) ) |
| 2055 | 1986 | |
| 2056 | 1987 | ROM_REGION(0x4ac00, "kanji", 0) |
| 2057 | 1988 | /* This is clearly a bad dump: size does not make sense and from 0x28000 on there are only 0xff */ |
| r5716 | r5717 | |
| 2067 | 1998 | |
| 2068 | 1999 | ROM_REGION(0x1800, "pcg", ROMREGION_ERASEFF) |
| 2069 | 2000 | |
| 2070 | | ROM_REGION(0x1800, "cgrom", 0) |
| 2001 | ROM_REGION(0x2800, "cgrom", 0) |
| 2071 | 2002 | /* This should be larger... hence, we are missing something (maybe part of the other fnt roms?) */ |
| 2072 | 2003 | ROM_LOAD("fnt0808_turbo.x1", 0x00000, 0x00800, CRC(84a47530) SHA1(06c0995adc7a6609d4272417fe3570ca43bd0454) ) |
| 2073 | 2004 | ROM_RELOAD( 0x00800, 0x00800) |
| 2074 | 2005 | ROM_RELOAD( 0x01000, 0x00800) |
| 2006 | ROM_LOAD("fnt0816.x1", 0x01800, 0x01000, BAD_DUMP CRC(34818d54) SHA1(2c5fdd73249421af5509e48a94c52c4e423402bf) ) |
| 2075 | 2007 | |
| 2076 | 2008 | ROM_REGION(0x4ac00, "kanji", 0) |
| 2077 | 2009 | /* This is clearly a bad dump: size does not make sense and from 0x28000 on there are only 0xff */ |
| r5716 | r5717 | |
| 2095 | 2027 | ROM_RELOAD( 0x00800, 0x00800) |
| 2096 | 2028 | ROM_RELOAD( 0x01000, 0x00800) |
| 2097 | 2029 | ROM_SYSTEM_BIOS( 0, "font1", "Font set 1" ) |
| 2098 | | ROMX_LOAD("fnt0816.x1", 0x1800, 0x1000, BAD_DUMP CRC(34818d54) SHA1(2c5fdd73249421af5509e48a94c52c4e423402bf), ROM_BIOS(1) ) |
| 2030 | ROMX_LOAD("fnt0816.x1", 0x1800, 0x1000, CRC(34818d54) SHA1(2c5fdd73249421af5509e48a94c52c4e423402bf), ROM_BIOS(1) ) |
| 2099 | 2031 | /* I strongly suspect this is not genuine */ |
| 2100 | 2032 | ROMX_LOAD("fnt1616.x1", 0x02800, 0x4ac00, BAD_DUMP CRC(46826745) SHA1(b9e6c320611f0842df6f45673c47c3e23bc14272), ROM_BIOS(1) ) |
| 2101 | 2033 | ROM_SYSTEM_BIOS( 1, "font2", "Font set 2" ) |