trunk/src/mame/video/antic.c
| r32013 | r32014 | |
| 1106 | 1106 | ***************************************************************/ |
| 1107 | 1107 | #define MODE2(s) COPY4(dst, antic.pf_21[video->data[s]]) |
| 1108 | 1108 | |
| 1109 | static inline void antic_mode_2(address_space &space, VIDEO *video, int bytes, int erase) |
| 1110 | { |
| 1111 | PREPARE_TXT2(space, bytes); |
| 1112 | ERASE(erase); |
| 1113 | REP(MODE2, bytes); |
| 1114 | ERASE(erase); |
| 1115 | POST_TXT(bytes); |
| 1116 | } |
| 1117 | |
| 1109 | 1118 | static ANTIC_RENDERER( antic_mode_2_32 ) |
| 1110 | 1119 | { |
| 1111 | | PREPARE_TXT2(space, 32); |
| 1112 | | ERASE(8); |
| 1113 | | REP(MODE2, 32); |
| 1114 | | ERASE(8); |
| 1115 | | POST_TXT(32); |
| 1120 | antic_mode_2(space, video, 32, 8); |
| 1116 | 1121 | } |
| 1117 | 1122 | static ANTIC_RENDERER( antic_mode_2_40 ) |
| 1118 | 1123 | { |
| 1119 | | PREPARE_TXT2(space, 40); |
| 1120 | | ERASE(4); |
| 1121 | | REP(MODE2, 40); |
| 1122 | | ERASE(4); |
| 1123 | | POST_TXT(40); |
| 1124 | antic_mode_2(space, video, 40, 4); |
| 1124 | 1125 | } |
| 1125 | 1126 | static ANTIC_RENDERER( antic_mode_2_48 ) |
| 1126 | 1127 | { |
| 1127 | | PREPARE_TXT2(space, 48); |
| 1128 | | REP(MODE2, 48); |
| 1129 | | POST_TXT(48); |
| 1128 | antic_mode_2(space, video, 48, 0); |
| 1130 | 1129 | } |
| 1131 | 1130 | |
| 1132 | 1131 | /************* ANTIC mode 03: ********************************* |
| r32013 | r32014 | |
| 1134 | 1133 | ***************************************************************/ |
| 1135 | 1134 | #define MODE3(s) COPY4(dst, antic.pf_21[video->data[s]]) |
| 1136 | 1135 | |
| 1136 | static inline void antic_mode_3(address_space &space, VIDEO *video, int bytes, int erase) |
| 1137 | { |
| 1138 | PREPARE_TXT3(space, bytes); |
| 1139 | ERASE(erase); |
| 1140 | REP(MODE3, bytes); |
| 1141 | ERASE(erase); |
| 1142 | POST_TXT(bytes); |
| 1143 | } |
| 1144 | |
| 1137 | 1145 | static ANTIC_RENDERER( antic_mode_3_32 ) |
| 1138 | 1146 | { |
| 1139 | | PREPARE_TXT3(space, 32); |
| 1140 | | ERASE(8); |
| 1141 | | REP(MODE3, 32); |
| 1142 | | ERASE(8); |
| 1143 | | POST_TXT(32); |
| 1147 | antic_mode_3(space, video, 32, 8); |
| 1144 | 1148 | } |
| 1145 | 1149 | static ANTIC_RENDERER( antic_mode_3_40 ) |
| 1146 | 1150 | { |
| 1147 | | PREPARE_TXT3(space, 40); |
| 1148 | | ERASE(4); |
| 1149 | | REP(MODE3, 40); |
| 1150 | | ERASE(4); |
| 1151 | | POST_TXT(40); |
| 1151 | antic_mode_3(space, video, 40, 4); |
| 1152 | 1152 | } |
| 1153 | 1153 | static ANTIC_RENDERER( antic_mode_3_48 ) |
| 1154 | 1154 | { |
| 1155 | | PREPARE_TXT3(space, 48); |
| 1156 | | REP(MODE3, 48); |
| 1157 | | POST_TXT(48); |
| 1155 | antic_mode_3(space, video, 48, 0); |
| 1158 | 1156 | } |
| 1159 | 1157 | |
| 1160 | 1158 | /************* ANTIC mode 04: ********************************* |
| r32013 | r32014 | |
| 1162 | 1160 | ***************************************************************/ |
| 1163 | 1161 | #define MODE4(s) COPY4(dst, antic.pf_x10b[video->data[s]]) |
| 1164 | 1162 | |
| 1163 | static inline void antic_mode_4(address_space &space, VIDEO *video, int bytes, int erase) |
| 1164 | { |
| 1165 | PREPARE_TXT45(space, bytes, 0); |
| 1166 | ERASE(erase); |
| 1167 | REP(MODE4, bytes); |
| 1168 | ERASE(erase); |
| 1169 | POST_TXT(bytes); |
| 1170 | } |
| 1171 | |
| 1165 | 1172 | static ANTIC_RENDERER( antic_mode_4_32 ) |
| 1166 | 1173 | { |
| 1167 | | PREPARE_TXT45(space, 32,0); |
| 1168 | | ERASE(8); |
| 1169 | | REP(MODE4, 32); |
| 1170 | | ERASE(8); |
| 1171 | | POST_TXT(32); |
| 1174 | antic_mode_4(space, video, 32, 8); |
| 1172 | 1175 | } |
| 1173 | 1176 | static ANTIC_RENDERER( antic_mode_4_40 ) |
| 1174 | 1177 | { |
| 1175 | | PREPARE_TXT45(space, 40,0); |
| 1176 | | ERASE(4); |
| 1177 | | REP(MODE4, 40); |
| 1178 | | ERASE(4); |
| 1179 | | POST_TXT(40); |
| 1178 | antic_mode_4(space, video, 40, 4); |
| 1180 | 1179 | } |
| 1181 | 1180 | static ANTIC_RENDERER( antic_mode_4_48 ) |
| 1182 | 1181 | { |
| 1183 | | PREPARE_TXT45(space, 48,0); |
| 1184 | | REP(MODE4, 48); |
| 1185 | | POST_TXT(48); |
| 1182 | antic_mode_4(space, video, 48, 0); |
| 1186 | 1183 | } |
| 1187 | 1184 | |
| 1188 | 1185 | /************* ANTIC mode 05: ********************************* |
| r32013 | r32014 | |
| 1190 | 1187 | ***************************************************************/ |
| 1191 | 1188 | #define MODE5(s) COPY4(dst, antic.pf_x10b[video->data[s]]) |
| 1192 | 1189 | |
| 1190 | static inline void antic_mode_5(address_space &space, VIDEO *video, int bytes, int erase) |
| 1191 | { |
| 1192 | PREPARE_TXT45(space, bytes, 1); |
| 1193 | ERASE(erase); |
| 1194 | REP(MODE5, bytes); |
| 1195 | ERASE(erase); |
| 1196 | POST_TXT(bytes); |
| 1197 | } |
| 1198 | |
| 1193 | 1199 | static ANTIC_RENDERER( antic_mode_5_32 ) |
| 1194 | 1200 | { |
| 1195 | | PREPARE_TXT45(space, 32,1); |
| 1196 | | ERASE(8); |
| 1197 | | REP(MODE5, 32); |
| 1198 | | ERASE(8); |
| 1199 | | POST_TXT(32); |
| 1201 | antic_mode_5(space, video, 32, 8); |
| 1200 | 1202 | } |
| 1201 | 1203 | static ANTIC_RENDERER( antic_mode_5_40 ) |
| 1202 | 1204 | { |
| 1203 | | PREPARE_TXT45(space, 40,1); |
| 1204 | | ERASE(4); |
| 1205 | | REP(MODE5, 40); |
| 1206 | | ERASE(4); |
| 1207 | | POST_TXT(40); |
| 1205 | antic_mode_5(space, video, 40, 4); |
| 1208 | 1206 | } |
| 1209 | 1207 | static ANTIC_RENDERER( antic_mode_5_48 ) |
| 1210 | 1208 | { |
| 1211 | | PREPARE_TXT45(space, 48,1); |
| 1212 | | REP(MODE5, 48); |
| 1213 | | POST_TXT(48); |
| 1209 | antic_mode_5(space, video, 48, 0); |
| 1214 | 1210 | } |
| 1215 | 1211 | |
| 1216 | 1212 | /************* ANTIC mode 06: ********************************* |
| r32013 | r32014 | |
| 1218 | 1214 | ***************************************************************/ |
| 1219 | 1215 | #define MODE6(s) COPY8(dst, antic.pf_3210b2[video->data[s]], antic.pf_3210b2[video->data[s]+1]) |
| 1220 | 1216 | |
| 1217 | static inline void antic_mode_6(address_space &space, VIDEO *video, int bytes, int erase) |
| 1218 | { |
| 1219 | PREPARE_TXT67(space, bytes, 0); |
| 1220 | ERASE(erase); |
| 1221 | REP(MODE6, bytes); |
| 1222 | ERASE(erase); |
| 1223 | POST_TXT(bytes); |
| 1224 | } |
| 1225 | |
| 1221 | 1226 | static ANTIC_RENDERER( antic_mode_6_32 ) |
| 1222 | 1227 | { |
| 1223 | | PREPARE_TXT67(space, 16,0); |
| 1224 | | ERASE(8); |
| 1225 | | REP(MODE6, 16); |
| 1226 | | ERASE(8); |
| 1227 | | POST_TXT(16); |
| 1228 | antic_mode_6(space, video, 16, 8); |
| 1228 | 1229 | } |
| 1229 | 1230 | static ANTIC_RENDERER( antic_mode_6_40 ) |
| 1230 | 1231 | { |
| 1231 | | PREPARE_TXT67(space, 20,0); |
| 1232 | | ERASE(4); |
| 1233 | | REP(MODE6, 20); |
| 1234 | | ERASE(4); |
| 1235 | | POST_TXT(20); |
| 1232 | antic_mode_6(space, video, 20, 4); |
| 1236 | 1233 | } |
| 1237 | 1234 | static ANTIC_RENDERER( antic_mode_6_48 ) |
| 1238 | 1235 | { |
| 1239 | | PREPARE_TXT67(space, 24,0); |
| 1240 | | REP(MODE6, 24); |
| 1241 | | POST_TXT(24); |
| 1236 | antic_mode_6(space, video, 24, 0); |
| 1242 | 1237 | } |
| 1243 | 1238 | |
| 1244 | 1239 | /************* ANTIC mode 07: ********************************* |
| r32013 | r32014 | |
| 1246 | 1241 | ***************************************************************/ |
| 1247 | 1242 | #define MODE7(s) COPY8(dst, antic.pf_3210b2[video->data[s]], antic.pf_3210b2[video->data[s]+1]) |
| 1248 | 1243 | |
| 1244 | static inline void antic_mode_7(address_space &space, VIDEO *video, int bytes, int erase) |
| 1245 | { |
| 1246 | PREPARE_TXT67(space, bytes, 1); |
| 1247 | ERASE(erase); |
| 1248 | REP(MODE7, bytes); |
| 1249 | ERASE(erase); |
| 1250 | POST_TXT(bytes); |
| 1251 | } |
| 1252 | |
| 1249 | 1253 | static ANTIC_RENDERER( antic_mode_7_32 ) |
| 1250 | 1254 | { |
| 1251 | | PREPARE_TXT67(space, 16,1); |
| 1252 | | ERASE(8); |
| 1253 | | REP(MODE7, 16); |
| 1254 | | ERASE(8); |
| 1255 | | POST_TXT(16); |
| 1255 | antic_mode_7(space, video, 16, 8); |
| 1256 | 1256 | } |
| 1257 | 1257 | static ANTIC_RENDERER( antic_mode_7_40 ) |
| 1258 | 1258 | { |
| 1259 | | PREPARE_TXT67(space, 20,1); |
| 1260 | | ERASE(4); |
| 1261 | | REP(MODE7, 20); |
| 1262 | | ERASE(4); |
| 1263 | | POST_TXT(20); |
| 1259 | antic_mode_7(space, video, 20, 4); |
| 1264 | 1260 | } |
| 1265 | 1261 | static ANTIC_RENDERER( antic_mode_7_48 ) |
| 1266 | 1262 | { |
| 1267 | | PREPARE_TXT67(space, 24,1); |
| 1268 | | REP(MODE7, 24); |
| 1269 | | POST_TXT(24); |
| 1263 | antic_mode_7(space, video, 24, 0); |
| 1270 | 1264 | } |
| 1271 | 1265 | |
| 1272 | 1266 | /************* ANTIC mode 08: ********************************* |
| r32013 | r32014 | |
| 1274 | 1268 | ***************************************************************/ |
| 1275 | 1269 | #define MODE8(s) COPY16(dst, antic.pf_210b4[video->data[s]],antic.pf_210b4[video->data[s]+1],antic.pf_210b4[video->data[s]+2],antic.pf_210b4[video->data[s]+3]) |
| 1276 | 1270 | |
| 1271 | static inline void antic_mode_8(address_space &space, VIDEO *video, int bytes, int erase) |
| 1272 | { |
| 1273 | PREPARE_GFX8(space, bytes); |
| 1274 | ERASE(erase); |
| 1275 | REP(MODE8, bytes); |
| 1276 | ERASE(erase); |
| 1277 | POST_GFX(bytes); |
| 1278 | } |
| 1279 | |
| 1277 | 1280 | static ANTIC_RENDERER( antic_mode_8_32 ) |
| 1278 | 1281 | { |
| 1279 | | PREPARE_GFX8(space, 8); |
| 1280 | | ERASE(8); |
| 1281 | | REP(MODE8, 8); |
| 1282 | | ERASE(8); |
| 1283 | | POST_GFX(8); |
| 1282 | antic_mode_8(space, video, 8, 8); |
| 1284 | 1283 | } |
| 1285 | 1284 | static ANTIC_RENDERER( antic_mode_8_40 ) |
| 1286 | 1285 | { |
| 1287 | | PREPARE_GFX8(space, 10); |
| 1288 | | ERASE(4); |
| 1289 | | REP(MODE8, 10); |
| 1290 | | ERASE(4); |
| 1291 | | POST_GFX(10); |
| 1286 | antic_mode_8(space, video, 10, 4); |
| 1292 | 1287 | } |
| 1293 | 1288 | static ANTIC_RENDERER( antic_mode_8_48 ) |
| 1294 | 1289 | { |
| 1295 | | PREPARE_GFX8(space, 12); |
| 1296 | | REP(MODE8, 12); |
| 1297 | | POST_GFX(12); |
| 1290 | antic_mode_8(space, video, 12, 0); |
| 1298 | 1291 | } |
| 1299 | 1292 | |
| 1300 | 1293 | /************* ANTIC mode 09: ********************************* |
| r32013 | r32014 | |
| 1302 | 1295 | ***************************************************************/ |
| 1303 | 1296 | #define MODE9(s) COPY8(dst, antic.pf_3210b2[video->data[s]], antic.pf_3210b2[video->data[s]+1]) |
| 1304 | 1297 | |
| 1298 | static inline void antic_mode_9(address_space &space, VIDEO *video, int bytes, int erase) |
| 1299 | { |
| 1300 | PREPARE_GFX9BC(space, bytes); |
| 1301 | ERASE(erase); |
| 1302 | REP(MODE9, bytes); |
| 1303 | ERASE(erase); |
| 1304 | POST_GFX(bytes); |
| 1305 | } |
| 1306 | |
| 1305 | 1307 | static ANTIC_RENDERER( antic_mode_9_32 ) |
| 1306 | 1308 | { |
| 1307 | | PREPARE_GFX9BC(space, 16); |
| 1308 | | ERASE(8); |
| 1309 | | REP(MODE9, 16); |
| 1310 | | ERASE(8); |
| 1311 | | POST_GFX(16); |
| 1309 | antic_mode_9(space, video, 16, 8); |
| 1312 | 1310 | } |
| 1313 | 1311 | static ANTIC_RENDERER( antic_mode_9_40 ) |
| 1314 | 1312 | { |
| 1315 | | PREPARE_GFX9BC(space, 20); |
| 1316 | | ERASE(4); |
| 1317 | | REP(MODE9, 20); |
| 1318 | | ERASE(4); |
| 1319 | | POST_GFX(20); |
| 1313 | antic_mode_9(space, video, 20, 4); |
| 1320 | 1314 | } |
| 1321 | 1315 | static ANTIC_RENDERER( antic_mode_9_48 ) |
| 1322 | 1316 | { |
| 1323 | | PREPARE_GFX9BC(space, 24); |
| 1324 | | REP(MODE9, 24); |
| 1325 | | POST_GFX(24); |
| 1317 | antic_mode_9(space, video, 24, 0); |
| 1326 | 1318 | } |
| 1327 | 1319 | |
| 1328 | 1320 | /************* ANTIC mode 0A: ********************************* |
| r32013 | r32014 | |
| 1330 | 1322 | ***************************************************************/ |
| 1331 | 1323 | #define MODEA(s) COPY8(dst, antic.pf_210b2[video->data[s]], antic.pf_210b2[video->data[s]+1]) |
| 1332 | 1324 | |
| 1325 | static inline void antic_mode_a(address_space &space, VIDEO *video, int bytes, int erase) |
| 1326 | { |
| 1327 | PREPARE_GFXA(space, bytes); |
| 1328 | ERASE(erase); |
| 1329 | REP(MODEA, bytes); |
| 1330 | ERASE(erase); |
| 1331 | POST_GFX(bytes); |
| 1332 | } |
| 1333 | |
| 1333 | 1334 | static ANTIC_RENDERER( antic_mode_a_32 ) |
| 1334 | 1335 | { |
| 1335 | | PREPARE_GFXA(space, 16); |
| 1336 | | ERASE(8); |
| 1337 | | REP(MODEA, 16); |
| 1338 | | ERASE(8); |
| 1339 | | POST_GFX(16); |
| 1336 | antic_mode_a(space, video, 16, 8); |
| 1340 | 1337 | } |
| 1341 | 1338 | static ANTIC_RENDERER( antic_mode_a_40 ) |
| 1342 | 1339 | { |
| 1343 | | PREPARE_GFXA(space, 20); |
| 1344 | | ERASE(4); |
| 1345 | | REP(MODEA, 20); |
| 1346 | | ERASE(4); |
| 1347 | | POST_GFX(20); |
| 1340 | antic_mode_a(space, video, 20, 4); |
| 1348 | 1341 | } |
| 1349 | 1342 | static ANTIC_RENDERER( antic_mode_a_48 ) |
| 1350 | 1343 | { |
| 1351 | | PREPARE_GFXA(space, 24); |
| 1352 | | REP(MODEA, 24); |
| 1353 | | POST_GFX(24); |
| 1344 | antic_mode_a(space, video, 24, 0); |
| 1354 | 1345 | } |
| 1355 | 1346 | |
| 1356 | 1347 | /************* ANTIC mode 0B: ********************************* |
| r32013 | r32014 | |
| 1358 | 1349 | ***************************************************************/ |
| 1359 | 1350 | #define MODEB(s) COPY8(dst, antic.pf_3210b2[video->data[s]], antic.pf_3210b2[video->data[s]+1]) |
| 1360 | 1351 | |
| 1352 | static inline void antic_mode_b(address_space &space, VIDEO *video, int bytes, int erase) |
| 1353 | { |
| 1354 | PREPARE_GFX9BC(space, bytes); |
| 1355 | ERASE(erase); |
| 1356 | REP(MODEB, bytes); |
| 1357 | ERASE(erase); |
| 1358 | POST_GFX(bytes); |
| 1359 | } |
| 1360 | |
| 1361 | 1361 | static ANTIC_RENDERER( antic_mode_b_32 ) |
| 1362 | 1362 | { |
| 1363 | | PREPARE_GFX9BC(space, 16); |
| 1364 | | ERASE(8); |
| 1365 | | REP(MODEB, 16); |
| 1366 | | ERASE(8); |
| 1367 | | POST_GFX(16); |
| 1363 | antic_mode_b(space, video, 16, 8); |
| 1368 | 1364 | } |
| 1369 | 1365 | static ANTIC_RENDERER( antic_mode_b_40 ) |
| 1370 | 1366 | { |
| 1371 | | PREPARE_GFX9BC(space, 20); |
| 1372 | | ERASE(4); |
| 1373 | | REP(MODEB, 20); |
| 1374 | | ERASE(4); |
| 1375 | | POST_GFX(20); |
| 1367 | antic_mode_b(space, video, 20, 4); |
| 1376 | 1368 | } |
| 1377 | 1369 | static ANTIC_RENDERER( antic_mode_b_48 ) |
| 1378 | 1370 | { |
| 1379 | | PREPARE_GFX9BC(space, 24); |
| 1380 | | REP(MODEB, 24); |
| 1381 | | POST_GFX(24); |
| 1371 | antic_mode_b(space, video, 24, 0); |
| 1382 | 1372 | } |
| 1383 | 1373 | |
| 1384 | 1374 | /************* ANTIC mode 0C: ********************************* |
| r32013 | r32014 | |
| 1386 | 1376 | ***************************************************************/ |
| 1387 | 1377 | #define MODEC(s) COPY8(dst, antic.pf_3210b2[video->data[s]], antic.pf_3210b2[video->data[s]+1]) |
| 1388 | 1378 | |
| 1379 | static inline void antic_mode_c(address_space &space, VIDEO *video, int bytes, int erase) |
| 1380 | { |
| 1381 | PREPARE_GFX9BC(space, bytes); |
| 1382 | ERASE(erase); |
| 1383 | REP(MODEC, bytes); |
| 1384 | ERASE(erase); |
| 1385 | POST_GFX(bytes); |
| 1386 | } |
| 1387 | |
| 1389 | 1388 | static ANTIC_RENDERER( antic_mode_c_32 ) |
| 1390 | 1389 | { |
| 1391 | | PREPARE_GFX9BC(space, 16); |
| 1392 | | ERASE(8); |
| 1393 | | REP(MODEC, 16); |
| 1394 | | ERASE(8); |
| 1395 | | POST_GFX(16); |
| 1390 | antic_mode_c(space, video, 16, 8); |
| 1396 | 1391 | } |
| 1397 | 1392 | static ANTIC_RENDERER( antic_mode_c_40 ) |
| 1398 | 1393 | { |
| 1399 | | PREPARE_GFX9BC(space, 20); |
| 1400 | | ERASE(4); |
| 1401 | | REP(MODEC, 20); |
| 1402 | | ERASE(4); |
| 1403 | | POST_GFX(20); |
| 1394 | antic_mode_c(space, video, 20, 4); |
| 1404 | 1395 | } |
| 1405 | 1396 | static ANTIC_RENDERER( antic_mode_c_48 ) |
| 1406 | 1397 | { |
| 1407 | | PREPARE_GFX9BC(space, 24); |
| 1408 | | REP(MODEC, 24); |
| 1409 | | POST_GFX(24); |
| 1398 | antic_mode_c(space, video, 24, 0); |
| 1410 | 1399 | } |
| 1411 | 1400 | |
| 1412 | 1401 | /************* ANTIC mode 0D: ********************************* |
| r32013 | r32014 | |
| 1414 | 1403 | ***************************************************************/ |
| 1415 | 1404 | #define MODED(s) COPY4(dst, antic.pf_x10b[video->data[s]]) |
| 1416 | 1405 | |
| 1406 | static inline void antic_mode_d(address_space &space, VIDEO *video, int bytes, int erase) |
| 1407 | { |
| 1408 | PREPARE_GFXDE(space, bytes); |
| 1409 | ERASE(erase); |
| 1410 | REP(MODED, bytes); |
| 1411 | ERASE(erase); |
| 1412 | POST_GFX(bytes); |
| 1413 | } |
| 1414 | |
| 1417 | 1415 | static ANTIC_RENDERER( antic_mode_d_32 ) |
| 1418 | 1416 | { |
| 1419 | | PREPARE_GFXDE(space, 32); |
| 1420 | | ERASE(8); |
| 1421 | | REP(MODED, 32); |
| 1422 | | ERASE(8); |
| 1423 | | POST_GFX(32); |
| 1417 | antic_mode_d(space, video, 32, 8); |
| 1424 | 1418 | } |
| 1425 | 1419 | static ANTIC_RENDERER( antic_mode_d_40 ) |
| 1426 | 1420 | { |
| 1427 | | PREPARE_GFXDE(space, 40); |
| 1428 | | ERASE(4); |
| 1429 | | REP(MODED, 40); |
| 1430 | | ERASE(4); |
| 1431 | | POST_GFX(40); |
| 1421 | antic_mode_d(space, video, 40, 4); |
| 1432 | 1422 | } |
| 1433 | 1423 | static ANTIC_RENDERER( antic_mode_d_48 ) |
| 1434 | 1424 | { |
| 1435 | | PREPARE_GFXDE(space, 48); |
| 1436 | | REP(MODED, 48); |
| 1437 | | POST_GFX(48); |
| 1425 | antic_mode_d(space, video, 48, 0); |
| 1438 | 1426 | } |
| 1439 | 1427 | |
| 1440 | 1428 | /************* ANTIC mode 0E: ********************************* |
| r32013 | r32014 | |
| 1442 | 1430 | ***************************************************************/ |
| 1443 | 1431 | #define MODEE(s) COPY4(dst, antic.pf_x10b[video->data[s]]) |
| 1444 | 1432 | |
| 1433 | static inline void antic_mode_e(address_space &space, VIDEO *video, int bytes, int erase) |
| 1434 | { |
| 1435 | PREPARE_GFXDE(space, bytes); |
| 1436 | ERASE(erase); |
| 1437 | REP(MODEE, bytes); |
| 1438 | ERASE(erase); |
| 1439 | POST_GFX(bytes); |
| 1440 | } |
| 1441 | |
| 1445 | 1442 | static ANTIC_RENDERER( antic_mode_e_32 ) |
| 1446 | 1443 | { |
| 1447 | | PREPARE_GFXDE(space, 32); |
| 1448 | | ERASE(8); |
| 1449 | | REP(MODEE, 32); |
| 1450 | | ERASE(8); |
| 1451 | | POST_GFX(32); |
| 1444 | antic_mode_e(space, video, 32, 8); |
| 1452 | 1445 | } |
| 1453 | 1446 | static ANTIC_RENDERER( antic_mode_e_40 ) |
| 1454 | 1447 | { |
| 1455 | | PREPARE_GFXDE(space, 40); |
| 1456 | | ERASE(4); |
| 1457 | | REP(MODEE, 40); |
| 1458 | | ERASE(4); |
| 1459 | | POST_GFX(40); |
| 1448 | antic_mode_e(space, video, 40, 4); |
| 1460 | 1449 | } |
| 1461 | 1450 | static ANTIC_RENDERER( antic_mode_e_48 ) |
| 1462 | 1451 | { |
| 1463 | | PREPARE_GFXDE(space, 48); |
| 1464 | | REP(MODEE, 48); |
| 1465 | | POST_GFX(48); |
| 1452 | antic_mode_e(space, video, 48, 0); |
| 1466 | 1453 | } |
| 1467 | 1454 | |
| 1468 | 1455 | /************* ANTIC mode 0F: ********************************* |
| r32013 | r32014 | |
| 1470 | 1457 | ***************************************************************/ |
| 1471 | 1458 | #define MODEF(s) COPY4(dst, antic.pf_1b[video->data[s]]) |
| 1472 | 1459 | |
| 1460 | static inline void antic_mode_f(address_space &space, VIDEO *video, int bytes, int erase) |
| 1461 | { |
| 1462 | PREPARE_GFXF(space, bytes); |
| 1463 | ERASE(erase); |
| 1464 | REP(MODEF, bytes); |
| 1465 | ERASE(erase); |
| 1466 | POST_GFX(bytes); |
| 1467 | } |
| 1468 | |
| 1473 | 1469 | static ANTIC_RENDERER( antic_mode_f_32 ) |
| 1474 | 1470 | { |
| 1475 | | PREPARE_GFXF(space, 32); |
| 1476 | | ERASE(8); |
| 1477 | | REP(MODEF, 32); |
| 1478 | | ERASE(8); |
| 1479 | | POST_GFX(32); |
| 1471 | antic_mode_f(space, video, 32, 8); |
| 1480 | 1472 | } |
| 1481 | 1473 | static ANTIC_RENDERER( antic_mode_f_40 ) |
| 1482 | 1474 | { |
| 1483 | | PREPARE_GFXF(space, 40); |
| 1484 | | ERASE(4); |
| 1485 | | REP(MODEF, 40); |
| 1486 | | ERASE(4); |
| 1487 | | POST_GFX(40); |
| 1475 | antic_mode_f(space, video, 40, 4); |
| 1488 | 1476 | } |
| 1489 | 1477 | static ANTIC_RENDERER( antic_mode_f_48 ) |
| 1490 | 1478 | { |
| 1491 | | PREPARE_GFXF(space, 48); |
| 1492 | | REP(MODEF, 48); |
| 1493 | | POST_GFX(48); |
| 1479 | antic_mode_f(space, video, 48, 0); |
| 1494 | 1480 | } |
| 1495 | 1481 | |
| 1496 | 1482 | /************* ANTIC mode 0F : GTIA mode 1 ******************** |
| r32013 | r32014 | |
| 1498 | 1484 | ***************************************************************/ |
| 1499 | 1485 | #define GTIA1(s) COPY4(dst, antic.pf_gtia1[video->data[s]]) |
| 1500 | 1486 | |
| 1487 | static inline void antic_mode_gtia1(address_space &space, VIDEO *video, int bytes, int erase) |
| 1488 | { |
| 1489 | PREPARE_GFXG1(space, bytes); |
| 1490 | ERASE(erase); |
| 1491 | REP(GTIA1, bytes); |
| 1492 | ERASE(erase); |
| 1493 | POST_GFX(bytes); |
| 1494 | } |
| 1495 | |
| 1501 | 1496 | static ANTIC_RENDERER( gtia_mode_1_32 ) |
| 1502 | 1497 | { |
| 1503 | | PREPARE_GFXG1(space, 32); |
| 1504 | | ERASE(8); |
| 1505 | | REP(GTIA1, 32); |
| 1506 | | ERASE(8); |
| 1507 | | POST_GFX(32); |
| 1498 | antic_mode_gtia1(space, video, 32, 8); |
| 1508 | 1499 | } |
| 1509 | 1500 | static ANTIC_RENDERER( gtia_mode_1_40 ) |
| 1510 | 1501 | { |
| 1511 | | PREPARE_GFXG1(space, 40); |
| 1512 | | ERASE(4); |
| 1513 | | REP(GTIA1, 40); |
| 1514 | | ERASE(4); |
| 1515 | | POST_GFX(40); |
| 1502 | antic_mode_gtia1(space, video, 40, 4); |
| 1516 | 1503 | } |
| 1517 | 1504 | static ANTIC_RENDERER( gtia_mode_1_48 ) |
| 1518 | 1505 | { |
| 1519 | | PREPARE_GFXG1(space, 48); |
| 1520 | | REP(GTIA1, 48); |
| 1521 | | POST_GFX(48); |
| 1506 | antic_mode_gtia1(space, video, 48, 0); |
| 1522 | 1507 | } |
| 1523 | 1508 | |
| 1524 | 1509 | /************* ANTIC mode 0F : GTIA mode 2 ******************** |
| r32013 | r32014 | |
| 1526 | 1511 | ***************************************************************/ |
| 1527 | 1512 | #define GTIA2(s) COPY4(dst, antic.pf_gtia2[video->data[s]]) |
| 1528 | 1513 | |
| 1514 | static inline void antic_mode_gtia2(address_space &space, VIDEO *video, int bytes, int erase) |
| 1515 | { |
| 1516 | PREPARE_GFXG2(space, bytes); |
| 1517 | ERASE(erase); |
| 1518 | REP(GTIA2, bytes); |
| 1519 | ERASE(erase); |
| 1520 | POST_GFX(bytes); |
| 1521 | } |
| 1522 | |
| 1529 | 1523 | static ANTIC_RENDERER( gtia_mode_2_32 ) |
| 1530 | 1524 | { |
| 1531 | | PREPARE_GFXG2(space, 32); |
| 1532 | | ERASE(8); |
| 1533 | | REP(GTIA2, 32); |
| 1534 | | ERASE(8); |
| 1535 | | POST_GFX(32); |
| 1525 | antic_mode_gtia2(space, video, 32, 8); |
| 1536 | 1526 | } |
| 1537 | 1527 | static ANTIC_RENDERER( gtia_mode_2_40 ) |
| 1538 | 1528 | { |
| 1539 | | PREPARE_GFXG2(space, 40); |
| 1540 | | ERASE(4); |
| 1541 | | REP(GTIA2, 40); |
| 1542 | | ERASE(4); |
| 1543 | | POST_GFX(40); |
| 1529 | antic_mode_gtia2(space, video, 40, 4); |
| 1544 | 1530 | } |
| 1545 | 1531 | static ANTIC_RENDERER( gtia_mode_2_48 ) |
| 1546 | 1532 | { |
| 1547 | | PREPARE_GFXG2(space, 48); |
| 1548 | | REP(GTIA2, 48); |
| 1549 | | POST_GFX(48); |
| 1533 | antic_mode_gtia2(space, video, 48, 0); |
| 1550 | 1534 | } |
| 1551 | 1535 | |
| 1552 | 1536 | /************* ANTIC mode 0F : GTIA mode 3 ******************** |
| r32013 | r32014 | |
| 1554 | 1538 | ***************************************************************/ |
| 1555 | 1539 | #define GTIA3(s) COPY4(dst, antic.pf_gtia3[video->data[s]]) |
| 1556 | 1540 | |
| 1541 | static inline void antic_mode_gtia3(address_space &space, VIDEO *video, int bytes, int erase) |
| 1542 | { |
| 1543 | PREPARE_GFXG3(space, bytes); |
| 1544 | ERASE(erase); |
| 1545 | REP(GTIA3, bytes); |
| 1546 | ERASE(erase); |
| 1547 | POST_GFX(bytes); |
| 1548 | } |
| 1549 | |
| 1557 | 1550 | static ANTIC_RENDERER( gtia_mode_3_32 ) |
| 1558 | 1551 | { |
| 1559 | | PREPARE_GFXG3(space, 32); |
| 1560 | | ERASE(8); |
| 1561 | | REP(GTIA3, 32); |
| 1562 | | ERASE(8); |
| 1563 | | POST_GFX(32); |
| 1552 | antic_mode_gtia3(space, video, 32, 8); |
| 1564 | 1553 | } |
| 1565 | 1554 | static ANTIC_RENDERER( gtia_mode_3_40 ) |
| 1566 | 1555 | { |
| 1567 | | PREPARE_GFXG3(space, 40); |
| 1568 | | ERASE(4); |
| 1569 | | REP(GTIA3, 40); |
| 1570 | | ERASE(4); |
| 1571 | | POST_GFX(40); |
| 1556 | antic_mode_gtia3(space, video, 40, 4); |
| 1572 | 1557 | } |
| 1573 | 1558 | static ANTIC_RENDERER( gtia_mode_3_48 ) |
| 1574 | 1559 | { |
| 1575 | | PREPARE_GFXG3(space, 48); |
| 1576 | | REP(GTIA3, 48); |
| 1577 | | POST_GFX(48); |
| 1560 | antic_mode_gtia3(space, video, 48, 0); |
| 1578 | 1561 | } |
| 1579 | 1562 | |
| 1580 | 1563 | /************************************************************************ |