trunk/src/mame/drivers/tx1.c
| r243191 | r243192 | |
| 795 | 795 | ROM_REGION( 0x10000, "audio_cpu", 0 ) |
| 796 | 796 | ROM_LOAD( "8411-136027-157.11", 0x00000, 0x2000, CRC(10ae3075) SHA1(69c5f62f2473aba848383eed3cecf15e273d86ca) ) |
| 797 | 797 | |
| 798 | | ROM_REGION( 0x20000, "char_tiles", 0 ) |
| 798 | ROM_REGION( 0x8000, "char_tiles", 0 ) |
| 799 | 799 | ROM_LOAD( "8411-136027-156.204", 0x0000, 0x4000, CRC(60f3c616) SHA1(59c4361891e4274e27e6279c919e8fd6803af7cf) ) |
| 800 | 800 | ROM_LOAD( "8411-136027-155.174", 0x4000, 0x4000, CRC(e59a6b72) SHA1(c10efa77ab421ac60b97227a8d547f50f8415670) ) |
| 801 | 801 | |
| 802 | | ROM_REGION( 0x40000, "obj_tiles", 0 ) |
| 802 | ROM_REGION( 0x10000, "obj_tiles", 0 ) |
| 803 | 803 | ROM_LOAD( "8411-136027-114.203", 0x0000, 0x4000, CRC(fc91328b) SHA1(e57fd2056b65d37cf2e1f0af56616c6555df3006) ) |
| 804 | 804 | ROM_LOAD( "8411-136027-116.258", 0x4000, 0x4000, CRC(5745f671) SHA1(6e471633cd6de9926b3361a84430c088e1f6a097) ) |
| 805 | 805 | ROM_LOAD( "8411-136027-115.173", 0x8000, 0x4000, CRC(720e5873) SHA1(151d9063c35b26f5876cf94bdf0c2665ec701bbd) ) |
| 806 | 806 | ROM_LOAD( "8411-136027-117.232", 0xc000, 0x4000, CRC(3c68d0bc) SHA1(2dbaf2a268b90214fd61c016ac945d4371057826) ) |
| 807 | 807 | |
| 808 | | ROM_REGION( 0x40000, "gfx3", 0 ) |
| 808 | ROM_REGION( 0x6000, "road", 0 ) |
| 809 | 809 | ROM_LOAD( "8411-136027-146.56", 0x0000, 0x2000, CRC(5635b8c1) SHA1(5cc9437a2ff0843f1917f2451852d4561c240b24) ) |
| 810 | 810 | ROM_LOAD( "8411-136027-147.66", 0x2000, 0x2000, CRC(03d83cf8) SHA1(5c0cfc6bf02ad2b3f37e1ceb493f69eb9829ab1e) ) |
| 811 | 811 | ROM_LOAD( "8411-136027-148.76", 0x4000, 0x2000, CRC(ad56013a) SHA1(ae3a91f58f30daff334754476db33ad1d12569fc) ) |
| r243191 | r243192 | |
| 816 | 816 | ROM_LOAD16_BYTE( "136027-143.ic223", 0x8000, 0x0200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 817 | 817 | ROM_LOAD16_BYTE( "136027-142.ic213", 0x8001, 0x0200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 818 | 818 | |
| 819 | | ROM_REGION( 0x50000, "obj_map", 0 ) |
| 819 | ROM_REGION( 0x8000, "obj_map", 0 ) |
| 820 | 820 | ROM_LOAD( "8411-136027-119.106", 0x0000, 0x4000, CRC(88eec0fb) SHA1(81d7a69dc1a4b3b81d7f28d97a3f80697cdcc6eb) ) |
| 821 | 821 | ROM_LOAD( "8411-136027-120.73", 0x4000, 0x4000, CRC(407cbe65) SHA1(e1c11b65f3c6abde6d55afeaffdb39cdd6d66377) ) |
| 822 | 822 | |
| 823 | | ROM_REGION( 0x50000, "user3", 0 ) |
| 823 | ROM_REGION( 0x6000, "obj_luts", 0 ) |
| 824 | 824 | ROM_LOAD( "8411-136027-113.48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) |
| 825 | 825 | ROM_LOAD( "8411-136027-118.281", 0x2000, 0x4000, CRC(de418dc7) SHA1(1233e2f7499ec5a73a40ee336d3fe26c06187784) ) |
| 826 | 826 | |
| r243191 | r243192 | |
| 882 | 882 | ROM_REGION( 0x10000, "audio_cpu", 0 ) |
| 883 | 883 | ROM_LOAD( "tx1_22h.ic9", 0x00000, 0x2000, CRC(66376232) SHA1(b8a026dae47173e7760eea4f52e67e525ad1b70b) ) |
| 884 | 884 | |
| 885 | | ROM_REGION( 0x20000, "char_tiles", 0 ) |
| 885 | ROM_REGION( 0x8000, "char_tiles", 0 ) |
| 886 | 886 | ROM_LOAD( "tx1_21a.ic204", 0x0000, 0x4000, CRC(cd3441ad) SHA1(8e6597b3177b8aaa34ed3373d85fc4b6231e1333) ) |
| 887 | 887 | ROM_LOAD( "tx1_20a.ic174", 0x4000, 0x4000, CRC(dbe595fc) SHA1(1ed2f775f0a1b46a2ffbc056eb4ef732ed546d3c) ) |
| 888 | 888 | |
| 889 | | ROM_REGION( 0x40000, "obj_tiles", 0 ) |
| 889 | ROM_REGION( 0x10000, "obj_tiles", 0 ) |
| 890 | 890 | ROM_LOAD( "tx1_16b.ic203", 0x0000, 0x4000, CRC(1141c965) SHA1(4b90c1428bcbd72d0449c064856a5596269b3fc6) ) |
| 891 | 891 | ROM_LOAD( "tx1_18b.ic258", 0x4000, 0x4000, CRC(0ad36d68) SHA1(fd5a65c56557c1bc9c0f3916f15f62500b52bfe0) ) |
| 892 | 892 | ROM_LOAD( "tx1_15b.ic173", 0x8000, 0x4000, CRC(30d1a8d5) SHA1(b4c585b7b8a8920bb3949d643e9e10c17d4009a0) ) |
| 893 | 893 | ROM_LOAD( "tx1_17b.ic232", 0xc000, 0x4000, CRC(364bb354) SHA1(a26581ca1088b979285471e2c6595048df84d75e) ) |
| 894 | 894 | |
| 895 | | ROM_REGION( 0x40000, "gfx3", 0 ) |
| 895 | ROM_REGION( 0x6000, "road", 0 ) |
| 896 | 896 | ROM_LOAD( "tx1_5a.ic56", 0x0000, 0x2000, CRC(5635b8c1) SHA1(5cc9437a2ff0843f1917f2451852d4561c240b24) ) |
| 897 | 897 | ROM_LOAD( "tx1_6a.ic66", 0x2000, 0x2000, CRC(03d83cf8) SHA1(5c0cfc6bf02ad2b3f37e1ceb493f69eb9829ab1e) ) |
| 898 | 898 | ROM_LOAD( "tx1_7a.ic76", 0x4000, 0x2000, CRC(ad56013a) SHA1(ae3a91f58f30daff334754476db33ad1d12569fc) ) |
| r243191 | r243192 | |
| 903 | 903 | ROM_LOAD16_BYTE( "xb02b.ic223", 0x8000, 0x0200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 904 | 904 | ROM_LOAD16_BYTE( "xb01b.ic213", 0x8001, 0x0200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 905 | 905 | |
| 906 | | ROM_REGION( 0x50000, "obj_map", 0 ) |
| 906 | ROM_REGION( 0x8000, "obj_map", 0 ) |
| 907 | 907 | ROM_LOAD( "tx1_14b.ic106", 0x0000, 0x4000, CRC(68c63d6e) SHA1(110e02b99c44d31041be588bd14642e26890ecbd) ) |
| 908 | 908 | ROM_LOAD( "tx1_13b.ic73", 0x4000, 0x4000, CRC(b0c581b2) SHA1(20926bc15e7c97045b219b828acfcdd99b8712a6) ) |
| 909 | 909 | |
| 910 | | ROM_REGION( 0x50000, "user3", 0 ) |
| 910 | ROM_REGION( 0x6000, "obj_luts", 0 ) |
| 911 | 911 | ROM_LOAD( "tx1_12b.ic48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) |
| 912 | 912 | ROM_LOAD( "tx1_19b.ic281", 0x2000, 0x4000, CRC(cb250de6) SHA1(4bf3006986fb8cbb3dd4fa988e6471633614e4bb) ) |
| 913 | 913 | |
| r243191 | r243192 | |
| 963 | 963 | ROM_REGION( 0x10000, "audio_cpu", 0 ) /* Label was missing */ |
| 964 | 964 | ROM_LOAD( "8411-136027-157.11", 0x00000, 0x2000, CRC(10ae3075) SHA1(69c5f62f2473aba848383eed3cecf15e273d86ca) ) /* Unconfirmed TC013A or the later TC013B */ |
| 965 | 965 | |
| 966 | | ROM_REGION( 0x20000, "char_tiles", 0 ) |
| 966 | ROM_REGION( 0x8000, "char_tiles", 0 ) |
| 967 | 967 | ROM_LOAD( "tx1_21a.ic204", 0x0000, 0x4000, CRC(cd3441ad) SHA1(8e6597b3177b8aaa34ed3373d85fc4b6231e1333) ) |
| 968 | 968 | ROM_LOAD( "tx1_20a.ic174", 0x4000, 0x4000, CRC(dbe595fc) SHA1(1ed2f775f0a1b46a2ffbc056eb4ef732ed546d3c) ) |
| 969 | 969 | |
| 970 | | ROM_REGION( 0x40000, "obj_tiles", 0 ) |
| 970 | ROM_REGION( 0x10000, "obj_tiles", 0 ) |
| 971 | 971 | ROM_LOAD( "tx1_16b.ic203", 0x0000, 0x4000, CRC(1141c965) SHA1(4b90c1428bcbd72d0449c064856a5596269b3fc6) ) |
| 972 | 972 | ROM_LOAD( "tx1_18b.ic258", 0x4000, 0x4000, CRC(0ad36d68) SHA1(fd5a65c56557c1bc9c0f3916f15f62500b52bfe0) ) |
| 973 | 973 | ROM_LOAD( "tx1_15b.ic173", 0x8000, 0x4000, CRC(30d1a8d5) SHA1(b4c585b7b8a8920bb3949d643e9e10c17d4009a0) ) |
| 974 | 974 | ROM_LOAD( "tx1_17b.ic232", 0xc000, 0x4000, CRC(364bb354) SHA1(a26581ca1088b979285471e2c6595048df84d75e) ) |
| 975 | 975 | |
| 976 | | ROM_REGION( 0x40000, "gfx3", 0 ) |
| 976 | ROM_REGION( 0x6000, "road", 0 ) |
| 977 | 977 | ROM_LOAD( "tx1_5a.ic56", 0x0000, 0x2000, CRC(5635b8c1) SHA1(5cc9437a2ff0843f1917f2451852d4561c240b24) ) |
| 978 | 978 | ROM_LOAD( "tx1_6a.ic66", 0x2000, 0x2000, CRC(03d83cf8) SHA1(5c0cfc6bf02ad2b3f37e1ceb493f69eb9829ab1e) ) |
| 979 | 979 | ROM_LOAD( "tx1_7a.ic76", 0x4000, 0x2000, CRC(ad56013a) SHA1(ae3a91f58f30daff334754476db33ad1d12569fc) ) |
| r243191 | r243192 | |
| 984 | 984 | ROM_LOAD16_BYTE( "xb02b.ic223", 0x8000, 0x0200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 985 | 985 | ROM_LOAD16_BYTE( "xb01b.ic213", 0x8001, 0x0200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 986 | 986 | |
| 987 | | ROM_REGION( 0x50000, "obj_map", 0 ) |
| 987 | ROM_REGION( 0x8000, "obj_map", 0 ) |
| 988 | 988 | ROM_LOAD( "tx1_14b.ic106", 0x0000, 0x4000, CRC(68c63d6e) SHA1(110e02b99c44d31041be588bd14642e26890ecbd) ) |
| 989 | 989 | ROM_LOAD( "tx1_13b.ic73", 0x4000, 0x4000, CRC(b0c581b2) SHA1(20926bc15e7c97045b219b828acfcdd99b8712a6) ) |
| 990 | 990 | |
| 991 | | ROM_REGION( 0x50000, "user3", 0 ) |
| 991 | ROM_REGION( 0x6000, "obj_luts", 0 ) |
| 992 | 992 | ROM_LOAD( "tx1_12b.ic48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) |
| 993 | 993 | ROM_LOAD( "tx1_19b.ic281", 0x2000, 0x4000, CRC(cb250de6) SHA1(4bf3006986fb8cbb3dd4fa988e6471633614e4bb) ) |
| 994 | 994 | |
| r243191 | r243192 | |
| 1072 | 1072 | ROM_LOAD( "bug25.157", 0x2c000, 0x4000, CRC(80c4e045) SHA1(be3b537d3ed3ee74fc51059aa744dca4d63431f6) ) |
| 1073 | 1073 | ROM_RELOAD( 0x38000, 0x4000 ) |
| 1074 | 1074 | |
| 1075 | | ROM_REGION( 0x40000, "road", 0 ) |
| 1075 | ROM_REGION( 0x8000, "road", 0 ) |
| 1076 | 1076 | ROM_LOAD( "bug12.58", 0x0000, 0x2000, CRC(bd34d55c) SHA1(05a719a6eff5af3aaaa1e0ee783b18597582ed64) ) |
| 1077 | 1077 | ROM_LOAD( "bug11.57", 0x2000, 0x2000, CRC(a44d43eb) SHA1(c4d68c7e123506acaa6adc353579cac19ecb3a9d) ) |
| 1078 | 1078 | ROM_LOAD( "bb3.137", 0x4000, 0x0200, CRC(ad76f3fb) SHA1(bf96f903b32e009a2592df0f28cc3e20b039f4d4) ) |
| r243191 | r243192 | |
| 1086 | 1086 | ROM_LOAD16_BYTE( "bb1.245", 0x8000, 0x0200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) |
| 1087 | 1087 | ROM_LOAD16_BYTE( "bb2.220", 0x8001, 0x0200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) |
| 1088 | 1088 | |
| 1089 | | ROM_REGION( 0x100000, "obj_map", 0 ) |
| 1089 | ROM_REGION( 0x10000, "obj_map", 0 ) |
| 1090 | 1090 | ROM_LOAD( "bug16.210", 0x0000, 0x4000, CRC(8b64409e) SHA1(1fb4c6923e6a9e1f2a63a2c335b63e2bdc44b61f) ) |
| 1091 | 1091 | ROM_LOAD( "bug14.209", 0x4000, 0x4000, CRC(4e765282) SHA1(f7d69d39823a8b33bd0e5b1bd78a5d68a293e221) ) |
| 1092 | 1092 | ROM_LOAD( "bug17.182", 0x8000, 0x4000, CRC(a5d84df6) SHA1(4e33ef0bee383e0d47b0c679cd2a54edb7ca0e3e) ) |
| 1093 | 1093 | ROM_LOAD( "bug15.181", 0xc000, 0x4000, CRC(d519de10) SHA1(535d05e11af65be65f3d9924b0c48faf8dcfd1bf) ) |
| 1094 | 1094 | |
| 1095 | | ROM_REGION( 0x10000, "obj_luts", 0 ) |
| 1095 | ROM_REGION( 0x6000, "obj_luts", 0 ) |
| 1096 | 1096 | ROM_LOAD( "bug13.124", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) |
| 1097 | 1097 | ROM_LOAD( "bug18.156", 0x2000, 0x4000, CRC(e58321a6) SHA1(81be87d3c6046bb375c74362dc940f0269b39d1d) ) |
| 1098 | 1098 | |
| r243191 | r243192 | |
| 1161 | 1161 | ROM_LOAD( "bug30s.145", 0x20000, 0x8000, CRC(11d8e2a8) SHA1(9bf198229a12d331e8e7352b7ee3f39f6891f517) ) |
| 1162 | 1162 | ROM_LOAD( "bug23s.142", 0x28000, 0x8000, CRC(015db5d8) SHA1(39ef8b44f2eb9399fb1555cffa6763e06d59c181) ) |
| 1163 | 1163 | |
| 1164 | | ROM_REGION( 0x40000, "road", 0 ) |
| 1164 | ROM_REGION( 0x8000, "road", 0 ) |
| 1165 | 1165 | ROM_LOAD( "bug11s.225",0x0000, 0x4000, CRC(771af4e1) SHA1(a42b164dd0567c78c0d308ee48d63e5a284897bb) ) |
| 1166 | 1166 | ROM_LOAD( "bb3s.195", 0x4000, 0x0200, CRC(2ab3d5ff) SHA1(9f8359cb4ba2e7d15dbb9dc21cd71c0902cd2153) ) |
| 1167 | 1167 | ROM_LOAD( "bb4s.193", 0x4200, 0x0200, CRC(630f68a4) SHA1(d730f050353c688f81d090e33e00cd35e7b7b6fa) ) |
| r243191 | r243192 | |
| 1174 | 1174 | ROM_LOAD16_BYTE( "bb1.163", 0x8000, 0x0200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) |
| 1175 | 1175 | ROM_LOAD16_BYTE( "bb2.162", 0x8001, 0x0200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) |
| 1176 | 1176 | |
| 1177 | | ROM_REGION( 0x100000, "obj_map", 0 ) |
| 1177 | ROM_REGION( 0x10000, "obj_map", 0 ) |
| 1178 | 1178 | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) |
| 1179 | 1179 | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) |
| 1180 | 1180 | |
| 1181 | | ROM_REGION( 0x10000, "obj_luts", 0 ) |
| 1181 | ROM_REGION( 0x6000, "obj_luts", 0 ) |
| 1182 | 1182 | ROM_LOAD( "bug13.32", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) |
| 1183 | 1183 | ROM_LOAD( "bug18s.141", 0x2000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) |
| 1184 | 1184 | |
trunk/src/mame/video/tx1.c
| r243191 | r243192 | |
| 113 | 113 | |
| 114 | 114 | PALETTE_INIT_MEMBER(tx1_state,tx1) |
| 115 | 115 | { |
| 116 | | const UINT8 *color_prom = memregion("proms")->base(); |
| 116 | const UINT8 *const color_prom = &m_proms[0]; |
| 117 | 117 | int i; |
| 118 | 118 | |
| 119 | 119 | static const res_net_info tx1_net_info = |
| r243191 | r243192 | |
| 233 | 233 | UINT16 *tx1_vram = m_vram; |
| 234 | 234 | INT32 x, y; |
| 235 | 235 | UINT32 scroll_x; |
| 236 | | UINT8 *chars, *gfx2; |
| 237 | 236 | |
| 238 | 237 | /* 2bpp characters */ |
| 239 | | chars = memregion("char_tiles")->base(); |
| 240 | | gfx2 = chars + 0x4000; |
| 238 | const UINT8 *const chars = &m_char_tiles[0]; |
| 239 | const UINT8 *const gfx2 = &m_char_tiles[0x4000]; |
| 241 | 240 | |
| 242 | 241 | /* X scroll value is the last word in char RAM */ |
| 243 | 242 | scroll_x = tx1_vram[0xfff] & 0x3ff; |
| r243191 | r243192 | |
| 414 | 413 | UINT8 pix[2][4][3]; |
| 415 | 414 | |
| 416 | 415 | /* Road slice map ROMs */ |
| 417 | | const UINT8 *const gfx3 = memregion("gfx3")->base(); |
| 418 | | const UINT8 *const rom_a = gfx3; |
| 419 | | const UINT8 *const rom_b = gfx3 + 0x2000; |
| 420 | | const UINT8 *const rom_c = gfx3 + 0x4000; |
| 416 | const UINT8 *const rom_a = &m_road_rom[0]; |
| 417 | const UINT8 *const rom_b = &m_road_rom[0x2000]; |
| 418 | const UINT8 *const rom_c = &m_road_rom[0x4000]; |
| 421 | 419 | |
| 422 | 420 | /* Pixel data */ |
| 423 | | const UINT8 *const proms = memregion("proms")->base(); |
| 424 | | const UINT8 *const prom_a = proms + 0x1100; |
| 425 | | const UINT8 *const prom_b = proms + 0x1300; |
| 426 | | const UINT8 *const prom_c = proms + 0x1500; |
| 427 | | const UINT8 *const vprom = proms + 0x1700; |
| 421 | const UINT8 *const prom_a = &m_proms[0x1100]; |
| 422 | const UINT8 *const prom_b = &m_proms[0x1300]; |
| 423 | const UINT8 *const prom_c = &m_proms[0x1500]; |
| 424 | const UINT8 *const vprom = &m_proms[0x1700]; |
| 428 | 425 | |
| 429 | 426 | rva9_8 = (tx1_vregs.flags & 3) << 8; |
| 430 | 427 | rva7 = !BIT(tx1_vregs.flags, TX1_RDFLAG_RVA7) << 7; |
| r243191 | r243192 | |
| 855 | 852 | UINT32 offs; |
| 856 | 853 | |
| 857 | 854 | /* The many lookup table ROMs */ |
| 858 | | const UINT8 *const ic48 = memregion("user3")->base(); |
| 859 | | const UINT8 *const ic281 = ic48 + 0x2000; |
| 855 | const UINT8 *const ic48 = &m_obj_luts[0]; |
| 856 | const UINT8 *const ic281 = &m_obj_luts[0x2000]; |
| 860 | 857 | |
| 861 | | const UINT8 *const proms = memregion("proms")->base(); |
| 862 | | const UINT8 *const ic190 = proms + 0xc00; |
| 863 | | const UINT8 *const ic162 = proms + 0xe00; |
| 864 | | const UINT8 *const ic25 = proms + 0x1000; |
| 858 | const UINT8 *const ic190 = &m_proms[0xc00]; |
| 859 | const UINT8 *const ic162 = &m_proms[0xe00]; |
| 860 | const UINT8 *const ic25 = &m_proms[0x1000]; |
| 865 | 861 | |
| 866 | | const UINT8 *const ic106 = memregion("obj_map")->base(); |
| 867 | | const UINT8 *const ic73 = ic106 + 0x4000; |
| 862 | const UINT8 *const ic106 = &m_obj_map[0]; |
| 863 | const UINT8 *const ic73 = &m_obj_map[0x4000]; |
| 868 | 864 | |
| 869 | | const UINT8 *const pixdata_rgn = memregion("obj_tiles")->base(); |
| 865 | const UINT8 *const pixdata_rgn = &m_obj_tiles[0]; |
| 870 | 866 | |
| 871 | 867 | for (offs = 0x0; offs <= 0x300; offs += 8) |
| 872 | 868 | { |
| r243191 | r243192 | |
| 995 | 991 | dataend |= ic106_data & 0x40; |
| 996 | 992 | |
| 997 | 993 | /* Retrieve data for an 8x8 tile */ |
| 998 | | ic73_data = ic73[rom_addr2]; |
| 994 | ic73_data = ic73[rom_addr2 & 0x3fff]; |
| 999 | 995 | |
| 1000 | 996 | /* This is the data from the LUT pair */ |
| 1001 | 997 | lut_data = (ic106_data << 8) | ic73_data; |
| r243191 | r243192 | |
| 1130 | 1126 | void tx1_state::tx1_combine_layers(bitmap_ind16 &bitmap, int screen) |
| 1131 | 1127 | { |
| 1132 | 1128 | int x, y; |
| 1133 | | UINT8 *chr_pal = memregion("proms")->base() + 0x900; |
| 1129 | UINT8 *chr_pal = &m_proms[0x900]; |
| 1134 | 1130 | |
| 1135 | 1131 | int x_offset = screen * 256; |
| 1136 | 1132 | |
| r243191 | r243192 | |
| 1256 | 1252 | |
| 1257 | 1253 | PALETTE_INIT_MEMBER(tx1_state,buggyboy) |
| 1258 | 1254 | { |
| 1259 | | const UINT8 *color_prom = memregion("proms")->base(); |
| 1255 | const UINT8 *const color_prom = &m_proms[0]; |
| 1260 | 1256 | int i; |
| 1261 | 1257 | |
| 1262 | 1258 | for (i = 0; i < 0x100; i++) |
| r243191 | r243192 | |
| 1301 | 1297 | UINT16 *buggyboy_vram = m_vram; |
| 1302 | 1298 | INT32 x, y; |
| 1303 | 1299 | UINT32 scroll_x, scroll_y; |
| 1304 | | UINT8 *chars, *gfx2; |
| 1305 | 1300 | UINT32 total_width; |
| 1306 | 1301 | UINT32 x_mask; |
| 1307 | 1302 | |
| 1308 | 1303 | /* 2bpp characters */ |
| 1309 | | chars = memregion("char_tiles")->base(); |
| 1310 | | gfx2 = memregion("char_tiles")->base() + 0x4000; |
| 1304 | const UINT8 *const chars = &m_char_tiles[0]; |
| 1305 | const UINT8 *const gfx2 = &m_char_tiles[0x4000]; |
| 1311 | 1306 | |
| 1312 | 1307 | /* X/Y scroll values are the last word in char RAM */ |
| 1313 | 1308 | if (wide) |
| r243191 | r243192 | |
| 1449 | 1444 | UINT8 d1 = 0; |
| 1450 | 1445 | |
| 1451 | 1446 | /* ROM/PROM lookup tables */ |
| 1452 | | const UINT8 *rom = memregion("road")->base(); |
| 1453 | | const UINT8 *prom0 = rom + 0x4000; |
| 1454 | | const UINT8 *prom1 = rom + 0x4200; |
| 1455 | | const UINT8 *prom2 = rom + 0x4400; |
| 1447 | const UINT8 *const rom = &m_road_rom[0]; |
| 1448 | const UINT8 *const prom0 = &m_road_rom[0x4000]; |
| 1449 | const UINT8 *const prom1 = &m_road_rom[0x4200]; |
| 1450 | const UINT8 *const prom2 = &m_road_rom[0x4400]; |
| 1456 | 1451 | |
| 1457 | 1452 | /* Latch road reverse bit */ |
| 1458 | 1453 | *_rorev = !( (rom_en && rom_flip) || (!rom_en && (ls161 & 0x4000)) ); |
| r243191 | r243192 | |
| 1543 | 1538 | UINT32 rva20_6; |
| 1544 | 1539 | |
| 1545 | 1540 | /* ROM/PROM lookup tables */ |
| 1546 | | const UINT8 *rcols = (UINT8*)(memregion("proms")->base() + 0x1500); |
| 1547 | | const UINT8 *vprom = memregion("road")->base() + 0x4600; |
| 1541 | const UINT8 *const rcols = &m_proms[0x1500]; |
| 1542 | const UINT8 *const vprom = &m_road_rom[0x4600]; |
| 1548 | 1543 | |
| 1549 | 1544 | /* Extract constant values */ |
| 1550 | 1545 | tcmd = ((vregs.scol & 0xc000) >> 12) | ((vregs.scol & 0x00c0) >> 6); |
| r243191 | r243192 | |
| 2170 | 2165 | UINT32 rva20_6; |
| 2171 | 2166 | |
| 2172 | 2167 | /* ROM/PROM lookup tables */ |
| 2173 | | const UINT8 *rcols = (UINT8*)(memregion("proms")->base() + 0x1500); |
| 2174 | | const UINT8 *vprom = memregion("road")->base() + 0x4600; |
| 2168 | const UINT8 *const rcols = &m_proms[0x1500]; |
| 2169 | const UINT8 *const vprom = &m_road_rom[0x4600]; |
| 2175 | 2170 | |
| 2176 | 2171 | /* Extract constant values */ |
| 2177 | 2172 | tcmd = ((vregs.scol & 0xc000) >> 12) | ((vregs.scol & 0x00c0) >> 6); |
| r243191 | r243192 | |
| 2577 | 2572 | UINT32 x_stride; |
| 2578 | 2573 | |
| 2579 | 2574 | /* The many lookup table ROMs */ |
| 2580 | | const UINT8 *const bug13 = (UINT8*)memregion("obj_luts")->base(); |
| 2581 | | const UINT8 *const bug18s = bug13 + 0x2000; |
| 2582 | | const UINT8 *const bb8 = (UINT8*)memregion("proms")->base() + 0x1600; |
| 2575 | const UINT8 *const bug13 = &m_obj_luts[0]; |
| 2576 | const UINT8 *const bug18s = &m_obj_luts[0x2000]; |
| 2577 | const UINT8 *const bb8 = &m_proms[0x1600]; |
| 2583 | 2578 | |
| 2584 | | const UINT8 *const bug16s = (UINT8*)memregion("obj_map")->base(); |
| 2585 | | const UINT8 *const bug17s = bug16s + 0x8000; |
| 2579 | const UINT8 *const bug16s = &m_obj_map[0]; |
| 2580 | const UINT8 *const bug17s = &m_obj_map[0x8000]; |
| 2586 | 2581 | |
| 2587 | | const UINT8 *const bb9o = (UINT8*)memregion("proms")->base() + 0x500; |
| 2588 | | const UINT8 *const bb9e = bb9o + 0x800; |
| 2582 | const UINT8 *const bb9o = &m_proms[0x500]; |
| 2583 | const UINT8 *const bb9e = &m_proms[0xd00]; |
| 2589 | 2584 | |
| 2590 | | const UINT8 *const pixdata_rgn = (UINT8*)memregion("obj_tiles")->base(); |
| 2585 | const UINT8 *const pixdata_rgn = &m_obj_tiles[0]; |
| 2591 | 2586 | |
| 2592 | 2587 | if (wide) |
| 2593 | 2588 | { |
| r243191 | r243192 | |
| 2927 | 2922 | |
| 2928 | 2923 | void tx1_state::bb_combine_layers(bitmap_ind16 &bitmap, int screen) |
| 2929 | 2924 | { |
| 2930 | | UINT8 *chr_pal = memregion("proms")->base() + 0x400; |
| 2925 | UINT8 *chr_pal = &m_proms[0x400]; |
| 2931 | 2926 | UINT32 bmp_stride; |
| 2932 | 2927 | UINT32 x_offset; |
| 2933 | 2928 | UINT32 y; |