trunk/hash/vz_cass.xml
| r0 | r242373 | |
| 1 | <?xml version="1.0"?> |
| 2 | <!DOCTYPE softwarelist SYSTEM "softwarelist.dtd"> |
| 3 | |
| 4 | <!-- |
| 5 | |
| 6 | List of known tape releases by Dick Smith in Australia: |
| 7 | |
| 8 | X-7274 Attack of the Killer Tomatoes |
| 9 | X-7231 Match Box |
| 10 | X-7232 Poker |
| 11 | X-7233 Hangman |
| 12 | X-7234 Slot Machine/Knock Off/Russian Roulette |
| 13 | X-7235 Blackjack |
| 14 | X-7236 Circus (*) |
| 15 | X-7237 Biorhythm/Pair Matching/Calendar |
| 16 | X-7238 Horse Race |
| 17 | X-7239 Invaders (*) |
| 18 | X-7240 Dynasty Derby |
| 19 | X-7241 Learjet |
| 20 | X-7242 Ghost Hunter (*) |
| 21 | X-7243 Hoppy (*) |
| 22 | X-7244 Super Snake |
| 23 | X-7245 Knights and Dragons |
| 24 | X-7247 Star Blaster (*) |
| 25 | X-7248 VZ-Asteroids |
| 26 | X-7249 Air Traffic Controller |
| 27 | X-7250 Lunar Lander |
| 28 | X-7251 Statistics 1 |
| 29 | X-7252 Statistics 2 |
| 30 | X-7253 Matrix |
| 31 | X-7254 Tennis Lesson/Golf Lesson |
| 32 | X-7255 Introduction to BASIC |
| 33 | X-7256 Elementary Geometry |
| 34 | X-7257 Speed Reading |
| 35 | X-7258 Typing Teacher |
| 36 | X-7259 Mailing List |
| 37 | X-7261 Portfolio Management |
| 38 | X-7262 Discounted Cash Flow Analysis |
| 39 | X-7263 Financial Ratio Analysis |
| 40 | X-7264 Tennis (*) |
| 41 | X-7265 Checkers |
| 42 | X-7266 Planet Patrol (*) |
| 43 | X-7268 Ladder Challenge (*) |
| 44 | X-7270 Panik (*) |
| 45 | X-7271 Othello |
| 46 | X-7272 Dracula's Castle |
| 47 | X-7273 Backgammon |
| 48 | X-7275 VZ Chess (*) |
| 49 | X-7276 Music Writer |
| 50 | X-7278 Disassembler |
| 51 | X-7279 Duel |
| 52 | X-7280 Hex Utilities |
| 53 | X-7281 Word Processor |
| 54 | X-7282 Editor Assembler |
| 55 | X-7285 Spell'O'Matic 1 & 2 |
| 56 | X-7286 Spell'O'Matic 3 & 4 |
| 57 | X-7287 Flashword 1 & 2 |
| 58 | X-7288 Flashword 3 & 4 |
| 59 | X-7289 Metric Spycatcher |
| 60 | X-7290 Whizkid Spycatcher |
| 61 | X-7330 Sprite Generator |
| 62 | X-7331 Formula One |
| 63 | X-7332 Galaxon (*) |
| 64 | X-7333 Dawn Patrol (*) |
| 65 | X-7339 Space RAM |
| 66 | X-7342 Crash |
| 67 | X-7344 Maze of Argon |
| 68 | X-7345 Word Matching |
| 69 | |
| 70 | * = dumped |
| 71 | |
| 72 | Demonstration Tape (included with the VZ200) |
| 73 | Demonstration Tape (included with the VZ300) |
| 74 | |
| 75 | --> |
| 76 | |
| 77 | <softwarelist name="vz_cass" description="Dick Smith VZ-200/300 cassettes"> |
| 78 | |
| 79 | <software name="chess"> |
| 80 | <description>Chess</description> |
| 81 | <year>198?</year> |
| 82 | <publisher>Dick Smith</publisher> |
| 83 | <info name="serial" value="X-7275" /> |
| 84 | <part name="cass1" interface="vtech1_cass"> |
| 85 | <dataarea name="cass" size="2854400"> |
| 86 | <rom name="chess.wav" size="2854400" crc="7cc80cf3" sha1="770b09e8755fad97e12f320cd5fea3416669cd36" offset="0" /> |
| 87 | </dataarea> |
| 88 | </part> |
| 89 | </software> |
| 90 | |
| 91 | <software name="circus"> |
| 92 | <description>Circus</description> |
| 93 | <year>198?</year> |
| 94 | <publisher>Dick Smith</publisher> |
| 95 | <info name="serial" value="X-7236" /> |
| 96 | <part name="cass1" interface="vtech1_cass"> |
| 97 | <dataarea name="cass" size="1317376"> |
| 98 | <rom name="circus.wav" size="1317376" crc="ab3ba833" sha1="1b33e2f3f2389f61f2e815be626b5d84083be77e" offset="0" /> |
| 99 | </dataarea> |
| 100 | </part> |
| 101 | </software> |
| 102 | |
| 103 | <software name="dawn"> |
| 104 | <description>Dawn Patrol</description> |
| 105 | <year>198?</year> |
| 106 | <publisher>Dick Smith</publisher> |
| 107 | <info name="serial" value="X-7333" /> |
| 108 | <part name="cass1" interface="vtech1_cass"> |
| 109 | <dataarea name="cass" size="3640544"> |
| 110 | <rom name="dawn.wav" size="3640544" crc="22d096f5" sha1="ac480a16b6d6b8d6f08875e9c6ca13cadc413fa1" offset="0" /> |
| 111 | </dataarea> |
| 112 | </part> |
| 113 | </software> |
| 114 | |
| 115 | <!-- Not released by Dick Smith? --> |
| 116 | <software name="defpen"> |
| 117 | <description>Defense Penetrator</description> |
| 118 | <year>1982</year> |
| 119 | <publisher>Cosmic Software</publisher> |
| 120 | <info name="author" value="Tom Thiel" /> |
| 121 | <part name="cass1" interface="vtech1_cass"> |
| 122 | <dataarea name="cass" size="1926592"> |
| 123 | <rom name="defpen.wav" size="1926592" crc="b3dfa117" sha1="b7b53d11483fd78dfc81484e0830e6f6913c6e47" offset="0" /> |
| 124 | </dataarea> |
| 125 | </part> |
| 126 | </software> |
| 127 | |
| 128 | <software name="galaxon"> |
| 129 | <description>Galaxon</description> |
| 130 | <year>198?</year> |
| 131 | <publisher>Dick Smith</publisher> |
| 132 | <info name="serial" value="X-7332" /> |
| 133 | <part name="cass1" interface="vtech1_cass"> |
| 134 | <dataarea name="cass" size="1628976"> |
| 135 | <rom name="galaxon.wav" size="1628976" crc="8909df05" sha1="4ee1ce9aa8538b8aad9d0839fdb1396335074945" offset="0" /> |
| 136 | </dataarea> |
| 137 | </part> |
| 138 | </software> |
| 139 | |
| 140 | <software name="ghost"> |
| 141 | <description>Ghost Hunter</description> |
| 142 | <year>198?</year> |
| 143 | <publisher>Dick Smith</publisher> |
| 144 | <info name="author" value="Dubois and McNamara" /> |
| 145 | <info name="serial" value="X-7242" /> |
| 146 | <part name="cass1" interface="vtech1_cass"> |
| 147 | <dataarea name="cass" size="1732336"> |
| 148 | <rom name="ghost.wav" size="1732336" crc="b5ed2320" sha1="f58e328e0b20d453a1c0486fd8e10c5f3e7ecfa7" offset="0" /> |
| 149 | </dataarea> |
| 150 | </part> |
| 151 | </software> |
| 152 | |
| 153 | <software name="hamsam"> |
| 154 | <description>Hamburger Sam</description> |
| 155 | <year>????</year> |
| 156 | <publisher></publisher> |
| 157 | <part name="cass1" interface="vtech1_cass"> |
| 158 | <dataarea name="cass" size="5109472"> |
| 159 | <rom name="hamsam.wav" size="5109472" crc="7aed86a7" sha1="b5061edb1401cea4aee97d8cd92c582c9c14e66b" offset="0" /> |
| 160 | </dataarea> |
| 161 | </part> |
| 162 | </software> |
| 163 | |
| 164 | <software name="hoppy"> |
| 165 | <description>Hoppy</description> |
| 166 | <year>198?</year> |
| 167 | <publisher>Dick Smith</publisher> |
| 168 | <info name="serial" value="X-7243" /> |
| 169 | <part name="cass1" interface="vtech1_cass"> |
| 170 | <dataarea name="cass" size="3172080"> |
| 171 | <rom name="hoppy.wav" size="3172080" crc="60e7e15a" sha1="1d56a04af700a94d44d6bb0ddfaf89213db39ce8" offset="0" /> |
| 172 | </dataarea> |
| 173 | </part> |
| 174 | </software> |
| 175 | |
| 176 | <software name="invaders"> |
| 177 | <description>Invaders</description> |
| 178 | <year>198?</year> |
| 179 | <publisher>Dick Smith</publisher> |
| 180 | <info name="author" value="Dubois and McNamara" /> |
| 181 | <info name="serial" value="X-7239" /> |
| 182 | <part name="cass1" interface="vtech1_cass"> |
| 183 | <dataarea name="cass" size="1723824"> |
| 184 | <rom name="invaders.wav" size="1723824" crc="f959681e" sha1="e12bc9384e7fe1efc0ecff6356c3e3ded7ee8373" offset="0" /> |
| 185 | </dataarea> |
| 186 | </part> |
| 187 | </software> |
| 188 | |
| 189 | <software name="ladder"> |
| 190 | <description>Ladder Challenge</description> |
| 191 | <year>198?</year> |
| 192 | <publisher>Dick Smith</publisher> |
| 193 | <info name="serial" value="X-7268" /> |
| 194 | <part name="cass1" interface="vtech1_cass"> |
| 195 | <dataarea name="cass" size="1622288"> |
| 196 | <rom name="ladder.wav" size="1622288" crc="47ab9ccf" sha1="e6d72b7bc26b124c906b9c0e0015137ae8844a4d" offset="0" /> |
| 197 | </dataarea> |
| 198 | </part> |
| 199 | </software> |
| 200 | |
| 201 | <software name="missile"> |
| 202 | <description>Missile</description> |
| 203 | <year>????</year> |
| 204 | <publisher></publisher> |
| 205 | <part name="cass1" interface="vtech1_cass"> |
| 206 | <dataarea name="cass" size="5109776"> |
| 207 | <rom name="missile.wav" size="5109776" crc="55a1fda4" sha1="1de495534447cee16d3db22b043d53b6d15f05fe" offset="0" /> |
| 208 | </dataarea> |
| 209 | </part> |
| 210 | </software> |
| 211 | |
| 212 | <software name="panik"> |
| 213 | <description>Panik</description> |
| 214 | <year>198?</year> |
| 215 | <publisher>Dick Smith</publisher> |
| 216 | <info name="serial" value="X-7270" /> |
| 217 | <part name="cass1" interface="vtech1_cass"> |
| 218 | <dataarea name="cass" size="1708928"> |
| 219 | <rom name="panik.wav" size="1708928" crc="8b8c4c5a" sha1="e9e2ae5c406f9ac79b186cb34b2849b9e2a477e3" offset="0" /> |
| 220 | </dataarea> |
| 221 | </part> |
| 222 | </software> |
| 223 | |
| 224 | <software name="ppatrol"> |
| 225 | <description>Planet Patrol</description> |
| 226 | <year>198?</year> |
| 227 | <publisher>Dick Smith</publisher> |
| 228 | <info name="serial" value="X-7266" /> |
| 229 | <part name="cass1" interface="vtech1_cass"> |
| 230 | <dataarea name="cass" size="2107776"> |
| 231 | <rom name="ppatrol.wav" size="2107776" crc="3eb828ed" sha1="b56777b732587856f554d978d844a3815ec50f69" offset="0" /> |
| 232 | </dataarea> |
| 233 | </part> |
| 234 | </software> |
| 235 | |
| 236 | <software name="starblas"> |
| 237 | <description>Star Blaster</description> |
| 238 | <year>198?</year> |
| 239 | <publisher>Dick Smith</publisher> |
| 240 | <info name="serial" value="X-7247" /> |
| 241 | <info name="usage" value="Needs 16k memory expansion" /> |
| 242 | <part name="cass1" interface="vtech1_cass"> |
| 243 | <dataarea name="cass" size="3327120"> |
| 244 | <rom name="starblas.wav" size="3327120" crc="e6a5b55f" sha1="07715fd8104891d0d4d3b06b5609674ca93af920" offset="0" /> |
| 245 | </dataarea> |
| 246 | </part> |
| 247 | </software> |
| 248 | |
| 249 | <software name="tennis"> |
| 250 | <description>Tennis</description> |
| 251 | <year>198?</year> |
| 252 | <publisher>Dick Smith</publisher> |
| 253 | <info name="serial" value="X-7264" /> |
| 254 | <part name="cass1" interface="vtech1_cass"> |
| 255 | <dataarea name="cass" size="2100784"> |
| 256 | <rom name="tennis.wav" size="2100784" crc="3eb5ed00" sha1="6c2f2d4c9d60b6f2bd977eddd397d6dbdbfc52f1" offset="0" /> |
| 257 | </dataarea> |
| 258 | </part> |
| 259 | </software> |
| 260 | |
| 261 | </softwarelist> |
trunk/src/emu/cpu/arcompact/arcompactdasm_ops.c
| r242372 | r242373 | |
| 344 | 344 | // fedc ba98 7654 3210 fedc ba98 7654 3210 |
| 345 | 345 | // fields |
| 346 | 346 | // 0001 0bbb ssss ssss SBBB DaaZ ZXAA AAAA |
| 347 | int size = 4; |
| 347 | 348 | |
| 348 | | |
| 349 | 349 | int A = (op & 0x0000003f) >> 0; //op &= ~0x0000003f; |
| 350 | 350 | int X = (op & 0x00000040) >> 6; //op &= ~0x00000040; |
| 351 | 351 | int Z = (op & 0x00000180) >> 7; //op &= ~0x00000180; |
| r242372 | r242373 | |
| 359 | 359 | int breg = b | (B << 3); |
| 360 | 360 | int sdat = s | (S << 8); // todo - signed |
| 361 | 361 | |
| 362 | UINT32 limm = 0; |
| 363 | if (breg == LIMM_REG) |
| 364 | { |
| 365 | GET_LIMM_32; |
| 366 | size = 8; |
| 367 | } |
| 368 | |
| 362 | 369 | output += sprintf( output, "LD"); |
| 363 | 370 | output += sprintf( output, "%s", datasize[Z]); |
| 364 | 371 | output += sprintf( output, "%s", dataextend[X]); |
| r242372 | r242373 | |
| 367 | 374 | output += sprintf( output, " "); |
| 368 | 375 | output += sprintf( output, "%s, ", regnames[A]); |
| 369 | 376 | output += sprintf( output, "["); |
| 370 | | output += sprintf( output, "%s, ", regnames[breg]); |
| 377 | if (breg == LIMM_REG) output += sprintf( output, "(%08x), ", limm); |
| 378 | else output += sprintf( output, "%s, ", regnames[breg]); |
| 371 | 379 | output += sprintf( output, "%d", sdat); |
| 372 | 380 | output += sprintf( output, "]"); |
| 373 | 381 | |
| 374 | | return 4; |
| 382 | return size; |
| 375 | 383 | } |
| 376 | 384 | |
| 377 | 385 | int arcompact_handle03_dasm(DASM_OPS_32) |
| 378 | 386 | { |
| 387 | int size = 4; |
| 379 | 388 | // bitpos |
| 380 | | // 11111 111 11111111 0 000 000000 0 00 00 0 |
| 381 | | // fedcb a98 76543210 f edc ba9876 5 43 21 0 |
| 389 | // 1111 1111 1111 1111 0000 0000 0000 0000 |
| 390 | // fedc ba98 7654 3210 fedc ba98 7654 3210 |
| 382 | 391 | // fields |
| 383 | | // 00011 bbb ssssssss S BBB CCCCCC D aa ZZ R |
| 392 | // 0001 1bbb ssss ssss SBBB CCCC CCDa aZZR |
| 393 | int B = (op & 0x00007000) >> 12;// op &= ~0x00007000; |
| 394 | int S = (op & 0x00008000) >> 15;// op &= ~0x00008000; |
| 395 | int s = (op & 0x00ff0000) >> 16;// op &= ~0x00ff0000; |
| 396 | int b = (op & 0x07000000) >> 24;// op &= ~0x07000000; |
| 384 | 397 | |
| 385 | | print("ST r+o (%08x)", op ); |
| 386 | | return 4; |
| 398 | int breg = b | (B << 3); |
| 399 | int sdat = s | (S << 8); // todo - signed |
| 400 | |
| 401 | int R = (op & 0x00000001) >> 0; op &= ~0x00000001; |
| 402 | int Z = (op & 0x00000006) >> 1; op &= ~0x00000006; |
| 403 | int a = (op & 0x00000018) >> 3; op &= ~0x00000018; |
| 404 | int D = (op & 0x00000020) >> 5; op &= ~0x00000020; |
| 405 | int C = (op & 0x00000fc0) >> 6; op &= ~0x00000fc0; |
| 406 | |
| 407 | UINT32 limm = 0; |
| 408 | if (breg == LIMM_REG) |
| 409 | { |
| 410 | GET_LIMM_32; |
| 411 | size = 8; |
| 412 | } |
| 413 | |
| 414 | |
| 415 | output += sprintf( output, "ST"); |
| 416 | output += sprintf( output, "%s", datasize[Z]); |
| 417 | output += sprintf( output, "%s", addressmode[a]); |
| 418 | output += sprintf( output, "%s", cachebit[D]); |
| 419 | output += sprintf( output, " "); |
| 420 | |
| 421 | output += sprintf( output, "%s, ", regnames[C]); |
| 422 | if (breg == LIMM_REG) output += sprintf( output, "(%08x), ", limm); |
| 423 | else output += sprintf( output, "%s, ", regnames[breg]); |
| 424 | output += sprintf( output, "%d", sdat); |
| 425 | |
| 426 | if (R) output += sprintf( output, "(reserved bit set)"); |
| 427 | |
| 428 | |
| 429 | return size; |
| 387 | 430 | } |
| 388 | 431 | |
| 389 | 432 | |
| 390 | | int arcompact_handle04_helper_dasm(char *output, offs_t pc, UINT32 op, const UINT8* oprom, const char* optext, int ignore_dst) |
| 433 | int arcompact_handle04_helper_dasm(char *output, offs_t pc, UINT32 op, const UINT8* oprom, const char* optext, int ignore_dst, int b_reserved) |
| 391 | 434 | { |
| 392 | 435 | // PP |
| 393 | 436 | // 0010 0bbb 00ii iiii FBBB CCCC CCAA AAAA |
| r242372 | r242373 | |
| 401 | 444 | |
| 402 | 445 | output += sprintf( output, "%s", optext); |
| 403 | 446 | output += sprintf( output, "%s", flagbit[F]); |
| 404 | | output += sprintf( output, " p(%d)", p); |
| 405 | | output += sprintf( output, " %s, ", regnames[breg]); |
| 447 | // output += sprintf( output, " p(%d)", p); |
| 448 | |
| 449 | |
| 450 | if (!b_reserved) |
| 451 | { |
| 452 | output += sprintf(output, " %s, ", regnames[breg]); |
| 453 | } |
| 454 | else |
| 455 | { |
| 456 | if (breg) output += sprintf(output, "reserved(%s), ", regnames[breg]); |
| 457 | } |
| 406 | 458 | |
| 459 | |
| 407 | 460 | if (p == 0) |
| 408 | 461 | { |
| 409 | 462 | // 0010 0bbb 00ii iiii FBBB CCCC CCAA AAAA |
| r242372 | r242373 | |
| 417 | 470 | GET_LIMM_32; |
| 418 | 471 | size = 8; |
| 419 | 472 | output += sprintf( output, "(%08x) ", limm ); |
| 420 | | if (!ignore_dst) output += sprintf( output, "A(%s)", regnames[A]); |
| 421 | | else output += sprintf( output, "unused(%s)", regnames[A]); |
| 473 | if (!ignore_dst) output += sprintf( output, "DST(%s)", regnames[A]); |
| 474 | else |
| 475 | { |
| 476 | if (A) output += sprintf(output, "unused(%s)", regnames[A]); |
| 477 | } |
| 422 | 478 | } |
| 423 | 479 | else |
| 424 | 480 | { |
| 425 | 481 | output += sprintf( output, "C(%s) ", regnames[C]); |
| 426 | | if (!ignore_dst) output += sprintf( output, "A(%s)", regnames[A]); |
| 427 | | else output += sprintf( output, "unused(%s)", regnames[A]); |
| 482 | if (!ignore_dst) output += sprintf( output, "DST(%s)", regnames[A]); |
| 483 | else |
| 484 | { |
| 485 | if (A) output += sprintf(output, "unused(%s)", regnames[A]); |
| 486 | } |
| 428 | 487 | |
| 429 | 488 | } |
| 430 | 489 | } |
| r242372 | r242373 | |
| 435 | 494 | int A = (op & 0x0000003f) >> 0; op &= ~0x0000003f; |
| 436 | 495 | |
| 437 | 496 | output += sprintf( output, "U(%02x) ", U ); |
| 438 | | if (!ignore_dst) output += sprintf( output, "A(%s)", regnames[A]); |
| 439 | | else output += sprintf( output, "unused(%s)", regnames[A]); |
| 497 | if (!ignore_dst) output += sprintf( output, "DST(%s)", regnames[A]); |
| 498 | else |
| 499 | { |
| 500 | if (A) output += sprintf(output, "unused(%s)", regnames[A]); |
| 501 | } |
| 440 | 502 | } |
| 441 | 503 | else if (p == 2) |
| 442 | 504 | { |
| r242372 | r242373 | |
| 472 | 534 | |
| 473 | 535 | int arcompact_handle04_00_dasm(DASM_OPS_32) |
| 474 | 536 | { |
| 475 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD", 0); |
| 537 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD", 0,0); |
| 476 | 538 | } |
| 477 | 539 | |
| 478 | 540 | int arcompact_handle04_01_dasm(DASM_OPS_32) |
| 479 | 541 | { |
| 480 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADC", 0); |
| 542 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADC", 0,0); |
| 481 | 543 | } |
| 482 | 544 | |
| 483 | 545 | int arcompact_handle04_02_dasm(DASM_OPS_32) |
| 484 | 546 | { |
| 485 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB", 0); |
| 547 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB", 0,0); |
| 486 | 548 | } |
| 487 | 549 | |
| 488 | 550 | int arcompact_handle04_03_dasm(DASM_OPS_32) |
| 489 | 551 | { |
| 490 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SBC", 0); |
| 552 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SBC", 0,0); |
| 491 | 553 | } |
| 492 | 554 | |
| 493 | 555 | int arcompact_handle04_04_dasm(DASM_OPS_32) |
| 494 | 556 | { |
| 495 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "AND", 0); |
| 557 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "AND", 0,0); |
| 496 | 558 | } |
| 497 | 559 | |
| 498 | 560 | int arcompact_handle04_05_dasm(DASM_OPS_32) |
| 499 | 561 | { |
| 500 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "OR", 0); |
| 562 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "OR", 0,0); |
| 501 | 563 | } |
| 502 | 564 | |
| 503 | 565 | int arcompact_handle04_06_dasm(DASM_OPS_32) |
| 504 | 566 | { |
| 505 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BIC", 0); |
| 567 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BIC", 0,0); |
| 506 | 568 | } |
| 507 | 569 | |
| 508 | 570 | int arcompact_handle04_07_dasm(DASM_OPS_32) |
| 509 | 571 | { |
| 510 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "XOR", 0); |
| 572 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "XOR", 0,0); |
| 511 | 573 | } |
| 512 | 574 | |
| 513 | 575 | int arcompact_handle04_08_dasm(DASM_OPS_32) |
| 514 | 576 | { |
| 515 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MAX", 0); |
| 577 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MAX", 0,0); |
| 516 | 578 | } |
| 517 | 579 | |
| 518 | 580 | int arcompact_handle04_09_dasm(DASM_OPS_32) |
| 519 | 581 | { |
| 520 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MIN", 0); |
| 582 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MIN", 0,0); |
| 521 | 583 | } |
| 522 | 584 | |
| 523 | 585 | |
| 524 | 586 | int arcompact_handle04_0a_dasm(DASM_OPS_32) |
| 525 | 587 | { |
| 526 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MOV", 1); |
| 588 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MOV", 1,0); |
| 527 | 589 | } |
| 528 | 590 | |
| 529 | 591 | int arcompact_handle04_0b_dasm(DASM_OPS_32) |
| 530 | 592 | { |
| 531 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "TST", 1); |
| 593 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "TST", 1,0); |
| 532 | 594 | } |
| 533 | 595 | |
| 534 | 596 | int arcompact_handle04_0c_dasm(DASM_OPS_32) |
| 535 | 597 | { |
| 536 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "CMP", 1); |
| 598 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "CMP", 1,0); |
| 537 | 599 | } |
| 538 | 600 | |
| 539 | 601 | int arcompact_handle04_0d_dasm(DASM_OPS_32) |
| 540 | 602 | { |
| 541 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "RCMP", 1); |
| 603 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "RCMP", 1,0); |
| 542 | 604 | } |
| 543 | 605 | |
| 544 | 606 | int arcompact_handle04_0e_dasm(DASM_OPS_32) |
| 545 | 607 | { |
| 546 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "RSUB", 0); |
| 608 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "RSUB", 0,0); |
| 547 | 609 | } |
| 548 | 610 | |
| 549 | 611 | int arcompact_handle04_0f_dasm(DASM_OPS_32) |
| 550 | 612 | { |
| 551 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BSET", 0); |
| 613 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BSET", 0,0); |
| 552 | 614 | } |
| 553 | 615 | |
| 554 | 616 | int arcompact_handle04_10_dasm(DASM_OPS_32) |
| 555 | 617 | { |
| 556 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BCLR", 0); |
| 618 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BCLR", 0,0); |
| 557 | 619 | } |
| 558 | 620 | |
| 559 | 621 | int arcompact_handle04_11_dasm(DASM_OPS_32) |
| 560 | 622 | { |
| 561 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BTST", 0); |
| 623 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BTST", 0,0); |
| 562 | 624 | } |
| 563 | 625 | |
| 564 | 626 | int arcompact_handle04_12_dasm(DASM_OPS_32) |
| 565 | 627 | { |
| 566 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BXOR", 0); |
| 628 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BXOR", 0,0); |
| 567 | 629 | } |
| 568 | 630 | |
| 569 | 631 | int arcompact_handle04_13_dasm(DASM_OPS_32) |
| 570 | 632 | { |
| 571 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BMSK", 0); |
| 633 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "BMSK", 0,0); |
| 572 | 634 | } |
| 573 | 635 | |
| 574 | 636 | int arcompact_handle04_14_dasm(DASM_OPS_32) |
| 575 | 637 | { |
| 576 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD1", 0); |
| 638 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD1", 0,0); |
| 577 | 639 | } |
| 578 | 640 | |
| 579 | 641 | int arcompact_handle04_15_dasm(DASM_OPS_32) |
| 580 | 642 | { |
| 581 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD2", 0); |
| 643 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD2", 0,0); |
| 582 | 644 | } |
| 583 | 645 | |
| 584 | 646 | int arcompact_handle04_16_dasm(DASM_OPS_32) |
| 585 | 647 | { |
| 586 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD3", 0); |
| 648 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "ADD3", 0,0); |
| 587 | 649 | } |
| 588 | 650 | |
| 589 | 651 | int arcompact_handle04_17_dasm(DASM_OPS_32) |
| 590 | 652 | { |
| 591 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB1", 0); |
| 653 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB1", 0,0); |
| 592 | 654 | } |
| 593 | 655 | |
| 594 | 656 | int arcompact_handle04_18_dasm(DASM_OPS_32) |
| 595 | 657 | { |
| 596 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB2", 0); |
| 658 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB2", 0,0); |
| 597 | 659 | } |
| 598 | 660 | |
| 599 | 661 | int arcompact_handle04_19_dasm(DASM_OPS_32) |
| 600 | 662 | { |
| 601 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB3", 0); |
| 663 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "SUB3", 0,0); |
| 602 | 664 | } |
| 603 | 665 | |
| 604 | 666 | int arcompact_handle04_1a_dasm(DASM_OPS_32) |
| 605 | 667 | { |
| 606 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPY", 0); |
| 668 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPY", 0,0); |
| 607 | 669 | } // * |
| 608 | 670 | |
| 609 | 671 | int arcompact_handle04_1b_dasm(DASM_OPS_32) |
| 610 | 672 | { |
| 611 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYH", 0); |
| 673 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYH", 0,0); |
| 612 | 674 | } // * |
| 613 | 675 | |
| 614 | 676 | int arcompact_handle04_1c_dasm(DASM_OPS_32) |
| 615 | 677 | { |
| 616 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYHU", 0); |
| 678 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYHU", 0,0); |
| 617 | 679 | } // * |
| 618 | 680 | |
| 619 | 681 | int arcompact_handle04_1d_dasm(DASM_OPS_32) |
| 620 | 682 | { |
| 621 | | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYU", 0); |
| 683 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "MPYU", 0,0); |
| 622 | 684 | } // * |
| 623 | 685 | |
| 624 | 686 | |
| 625 | 687 | |
| 626 | 688 | int arcompact_handle04_20_dasm(DASM_OPS_32) |
| 627 | 689 | { |
| 628 | | // todo, other bits (in none long immediate mode at least) |
| 690 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "J", 1,1); |
| 691 | } |
| 629 | 692 | |
| 630 | | int size = 4; |
| 631 | | int C = (op & 0x00000fc0) >> 6; |
| 632 | | UINT8 condition = op & 0x0000001f; |
| 633 | 693 | |
| 634 | | op &= ~0x00000fc0; |
| 635 | | |
| 636 | | if (C == LIMM_REG) |
| 637 | | { |
| 638 | | UINT32 limm; |
| 639 | | GET_LIMM_32; |
| 640 | | size = 8; |
| 641 | | |
| 642 | | print("J(%s) %08x (%08x)", conditions[condition], limm, op); |
| 643 | | } |
| 644 | | else |
| 645 | | { |
| 646 | | print("J(%s) (r%d) (%08x)", conditions[condition], C, op); |
| 647 | | } |
| 648 | 694 | |
| 649 | | return size; |
| 695 | int arcompact_handle04_21_dasm(DASM_OPS_32) |
| 696 | { |
| 697 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "J.D", 1,1); |
| 650 | 698 | } |
| 651 | 699 | |
| 700 | int arcompact_handle04_22_dasm(DASM_OPS_32) |
| 701 | { |
| 702 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "JL", 1,1); |
| 703 | } |
| 652 | 704 | |
| 705 | int arcompact_handle04_23_dasm(DASM_OPS_32) |
| 706 | { |
| 707 | return arcompact_handle04_helper_dasm(output, pc, op, oprom, "JL.D", 1,1); |
| 708 | } |
| 653 | 709 | |
| 654 | | int arcompact_handle04_21_dasm(DASM_OPS_32) { print("Jcc.D (%08x)", op); return 4;} |
| 655 | | int arcompact_handle04_22_dasm(DASM_OPS_32) { print("JLcc (%08x)", op); return 4;} |
| 656 | | int arcompact_handle04_23_dasm(DASM_OPS_32) { print("JLcc.D (%08x)", op); return 4;} |
| 657 | 710 | |
| 658 | 711 | |
| 659 | 712 | |
| 660 | | |
| 661 | 713 | int arcompact_handle04_28_dasm(DASM_OPS_32) { print("LPcc (%08x)", op); return 4;} |
| 662 | 714 | int arcompact_handle04_29_dasm(DASM_OPS_32) { print("FLAG (%08x)", op); return 4;} |
| 663 | 715 | int arcompact_handle04_2a_dasm(DASM_OPS_32) { print("LR (%08x)", op); return 4;} |
| r242372 | r242373 | |
| 690 | 742 | |
| 691 | 743 | |
| 692 | 744 | |
| 745 | // format on these is.. |
| 693 | 746 | |
| 747 | // 0010 0bbb aa11 0ZZX DBBB CCCC CCAA AAAA |
| 748 | // note, bits 11 0ZZX are part of the sub-opcode # already - this is a special encoding |
| 749 | int arcompact_handle04_3x_helper_dasm(char *output, offs_t pc, UINT32 op, const UINT8* oprom, int dsize, int extend) |
| 750 | { |
| 751 | int size = 4; |
| 752 | output += sprintf(output, "LD"); |
| 753 | output += sprintf(output, "%s", datasize[dsize]); |
| 754 | output += sprintf(output, "%s", dataextend[extend]); |
| 694 | 755 | |
| 695 | | int arcompact_handle04_30_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x30) (%08x)", op); return 4;} |
| 696 | | int arcompact_handle04_31_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x31) (%08x)", op); return 4;} |
| 697 | | int arcompact_handle04_32_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x32) (%08x)", op); return 4;} |
| 698 | | int arcompact_handle04_33_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x33) (%08x)", op); return 4;} |
| 699 | | int arcompact_handle04_34_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x34) (%08x)", op); return 4;} |
| 700 | | int arcompact_handle04_35_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x35) (%08x)", op); return 4;} |
| 701 | | int arcompact_handle04_36_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x36) (%08x)", op); return 4;} |
| 702 | | int arcompact_handle04_37_dasm(DASM_OPS_32) { print("LD r-r (basecase 0x37) (%08x)", op); return 4;} |
| 756 | int mode = (op & 0x00c00000) >> 22; op &= ~0x00c00000; |
| 757 | int b = (op & 0x07000000) >> 24; op &= ~0x07000000; |
| 758 | int B = (op & 0x00007000) >> 12; op &= ~0x00007000; |
| 759 | int breg = b | (B << 3); |
| 760 | int D = (op & 0x00008000) >> 15;op &= ~0x00008000; |
| 761 | int C = (op & 0x00000fc0) >> 6; op &= ~0x00000fc0; |
| 762 | int A = (op & 0x0000003f) >> 0; op &= ~0x0000003f; |
| 703 | 763 | |
| 764 | output += sprintf(output, "%s", addressmode[mode]); |
| 765 | output += sprintf(output, "%s", cachebit[D]); |
| 704 | 766 | |
| 767 | output += sprintf( output, "DST(%s)", regnames[A]); |
| 768 | output += sprintf( output, "SRC1(%s)", regnames[breg]); |
| 769 | output += sprintf( output, "SRC2(%s)", regnames[C]); |
| 705 | 770 | |
| 771 | |
| 706 | 772 | |
| 707 | 773 | |
| 774 | return size; |
| 775 | |
| 708 | 776 | |
| 777 | |
| 778 | } |
| 779 | |
| 780 | int arcompact_handle04_30_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,0,0); } |
| 781 | // ZZ value of 0x0 with X of 1 is illegal |
| 782 | int arcompact_handle04_31_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,0,1); } |
| 783 | int arcompact_handle04_32_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,1,0); } |
| 784 | int arcompact_handle04_33_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,1,1); } |
| 785 | int arcompact_handle04_34_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,2,0); } |
| 786 | int arcompact_handle04_35_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,2,1); } |
| 787 | // ZZ value of 0x3 is illegal |
| 788 | int arcompact_handle04_36_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,3,0); } |
| 789 | int arcompact_handle04_37_dasm(DASM_OPS_32) { return arcompact_handle04_3x_helper_dasm(output,pc,op,oprom,3,1); } |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 709 | 796 | int arcompact_handle05_00_dasm(DASM_OPS_32) { print("ASL a <- b asl c (%08x)", op); return 4;} |
| 710 | 797 | int arcompact_handle05_01_dasm(DASM_OPS_32) { print("LSR a <- b lsr c (%08x)", op); return 4;} |
| 711 | 798 | int arcompact_handle05_02_dasm(DASM_OPS_32) { print("ASR a <- b asr c (%08x)", op); return 4;} |