File size: 38,003 Bytes
3a1d794 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | {
"sleigh_data": [
{
"id": "0",
"language": "Sleigh",
"instruction": "mov",
"sleigh_code": ":mov rm_04_07,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0011 \n{\n rn_08_11 = rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0110",
"example_usage": "void MOV (int m, int n)\n{\n R[n] = R[m];\n PC += 2;\n}",
"possible_exceptions": ""
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "1",
"language": "Sleigh",
"instruction": "mov",
"sleigh_code": ":mov imm8,rn_08_11 is opcode_12_15=0b1110 & rn_08_11 & imm8 \n{\n rn_08_11 = imm8;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Stores immediate data, sign-extended to longword, in general register Rn.",
"feature": "Data Transfer Instruction",
"opcode": "1110",
"example_usage": "void MOVI (int i, int n)\n{\n if ((i & 0x80) == 0)\n R[n] = (0x000000FF & i);\n else\n R[n] = (0xFFFFFF00 | i);\n\n PC += 2;\n}",
"possible_exceptions": ""
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "2",
"language": "Sleigh",
"instruction": "movi20",
"sleigh_code": ":movi20 simm20, l_rn_24_27\n is l_opcode_28_31=0b0000 & l_rn_24_27 & l_opcode_16_19=0b0000 & simm20\n{\n l_rn_24_27 = simm20;\n}",
"sleigh_comments": "# MOVI20 #imm20, Rn 0000nnnniiii0000 iiiiiiiiiiiiiiii imm β sign extension β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Stores immediate data that has been sign-extended to longword in general register Rn.",
"feature": "Data Transfer Instruction",
"opcode": "0b0000",
"example_usage": "void MOVI20 (int i, int n)\n{\n if (i & 0x00080000) == 0)\n R[n] = (0x000FFFFF & (long)i);\n else\n R[n] = (0xFFF00000 | (long)i);\n\n PC += 4;\n}\n",
"possible_exceptions": ""
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "3",
"language": "Sleigh",
"instruction": "movi20s",
"sleigh_code": ":movi20s simm20s, l_rn_24_27\n is l_opcode_28_31=0b0000 & l_rn_24_27 & l_opcode_16_19=0b0001 & simm20s\n{\n l_rn_24_27 = simm20s;\n}",
"sleigh_comments": "# MOVI20S #imm20, Rn 0000nnnniiii0001 iiiiiiiiiiiiiiii imm<<8 β sign extension β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Shifts immediate data 8 bits to the left and performs sign extension to longword, then stores the resulting data in general register Rn. Using an OR or ADD instruction as the next instruction enables a 28-bit absolute address to be generated.",
"feature": "Data Transfer Instruction",
"opcode": "0b0000",
"example_usage": "void MOVI20S (int i, int n)\n{\n if (i & 0x00080000) == 0)\n R[n] = (0x000FFFFF & (long)i);\n else\n R[n] = (0xFFF00000 | (long)i);\n\n R[n] <<= 8;\n PC += 4;\n}",
"possible_exceptions": ""
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "4",
"language": "Sleigh",
"instruction": "mova",
"sleigh_code": ":mova disppc4,r0 is r0 & opcode_08_15=0b11000111 & disppc4\n{\n r0 = disppc4;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Stores the effective address of the source operand into general register R0. The 8-bit displacement is zero-extended and quadrupled. Consequently, the relative interval from the operand is PC + 1020 bytes. The PC is the address four bytes after this instruction, but the lowest two bits of the PC are fixed at 00.\n\nNote\nSH1*, SH2*, SH3*:\nIf this instruction is placed immediately after a delayed branch instruction, the PC must point to an address specified by (the starting address of the branch destination) + 2.\n\nSH4*:\nIf this instruction is executed in a delay slot, a slot illegal instruction exception will be generated.",
"feature": "Data Transfer Instruction",
"opcode": "0b11000111",
"example_usage": "void MOVA (int d)\n{\n unsigned int disp;\n disp = (unsigned int)(0x000000FF & d);\n R[0] = (PC & 0xFFFFFFFC) + 4 + (disp << 2);\n PC += 2;\n}",
"possible_exceptions": "Slot illegal instruction"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "5",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w disppc2,rn_08_11 is opcode_12_15=0b1001 & rn_08_11 & disppc2\n{\n rn_08_11 = sext(*:2 disppc2);\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Stores immediate data, sign-extended to longword, in general register Rn. The data is stored from memory address (PC + 4 + displacement * 2). The 8-bit displacement is multiplied by two after zero-extension, and so the relative distance from the table is in the range up to PC + 4 + 510 bytes. The PC value is the address of this instruction.\n\nNote\nIf the following instruction is a branch instruction, it is identified as a slot illegal instruction.",
"feature": "Data Transfer Instruction",
"opcode": "0b1001",
"example_usage": "void MOVWI (int d, int n)\n{\n unsigned int disp = (0x000000FF & d);\n R[n] = Read_16 (PC + 4 + (disp << 1));\n if ((R[n] & 0x8000) == 0)\n R[n] &= 0x0000FFFF;\n else\n R[n] |= 0xFFFF0000;\n\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\nSlot illegal instruction exception\nData TLB miss exception\nData TLB protection violation exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "6",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l disppc4,rn_08_11 is opcode_12_15=0b1101 & rn_08_11 & disppc4\n{\n rn_08_11 = *:4 disppc4;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Stores immediate data, sign-extended to longword, in general register Rn. The data is stored from memory address (PC + 4 + displacement * 4). The 8-bit displacement is multiplied by four after zero-extension, and so the relative distance from the operand is in the range up to PC + 4 + 1020 bytes. The PC value is the address of this instruction. A value with the lower 2 bits adjusted to 00 is used in address calculation.\n\nNote\nIf the following instruction is a branch instruction, it is identified as a slot illegal instruction.",
"feature": "Data Transfer Instruction",
"opcode": "0b1101",
"example_usage": "void MOVLI (int d, int n)\n{\n unsigned int disp = (0x000000FF & d);\n R[n] = Read_32 ((PC & 0xFFFFFFFC) + 4 + (disp << 2));\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\nSlot illegal instruction exception\nData TLB miss exception\nData TLB protection violation exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "7",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b @rm_04_07,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0000 \n{\n rn_08_11 = sext(*:1 rm_04_07);\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0b0110",
"example_usage": "void MOVBL (int m, int n)\n{\n R[n] = Read_8 (R[m]);\n if ((R[n] & 0x80) == 0)\n R[n] &= 0x000000FF;\n else\n R[n] |= 0xFFFFFF00;\n\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "8",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w @rm_04_07,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0001 \n{\n rn_08_11 = sext(*:2 rm_04_07);\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0b0110",
"example_usage": "void MOVWL (int m, int n)\n{\n R[n] = Read_16 (R[m]);\n if ((R[n] & 0x8000) == 0)\n R[n] &= 0x0000FFFF;\n else\n R[n] |= 0xFFFF0000;\n\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "9",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l @rm_04_07,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0010 \n{\n rn_08_11 = *:4 rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination",
"feature": "Data Transfer Instruction",
"opcode": "0b0110",
"example_usage": "void MOVLL (int m, int n)\n{\n R[n] = Read_32 (R[m]);\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "10",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b rm_04_07,@rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0000 \n{\n *:1 rn_08_11 = rm_04_07:1;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVBS (int m, int n)\n{\nWrite_8 (R[n], R[m]);\nPC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "11",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w rm_04_07,@rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0001 \n{\n *:2 rn_08_11 = rm_04_07:2;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVWS (int m, int n)\n{\n Write_16 (R[n], R[m]);\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "12",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l rm_04_07,@rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0010 \n{\n *:4 rn_08_11 = rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVLS (int m, int n)\n{\n Write_32 (R[n], R[m]);\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "13",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b @rm_04_07+,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0100 & (opcode_04_07=opcode_08_11)\n{\n rn_08_11 = sext(*:1 rm_04_07);\n}",
"sleigh_comments": "the following two instructions share the same opcodes but differ if rm == rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0110",
"example_usage": "void MOVBP (int m, int n)\n{\n R[n] = Read_8 (R[m]);\n if ((R[n] & 0x80) == 0)\n R[n] &= 0x000000FF;\n else\n R[n] |= 0xFFFFFF00;\n if (n != m)\n R[m] += 1;\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error\nInitial page write exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "14",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w @rm_04_07+,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0101 & (opcode_04_07=opcode_08_11)\n{\n rn_08_11 = sext(*:2 rm_04_07);\n}",
"sleigh_comments": "the following two instructions share the same opcodes but differ if rm == rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0110",
"example_usage": "void MOVWP (int m, int n)\n{\n R[n] = Read_16 (R[m]);\n if ((R[n] & 0x8000) == 0)\n R[n] &= 0x0000FFFF;\n else\n R[n] |= 0xFFFF0000;\n if (n != m)\n R[m] += 2;\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error\nInitial page write exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "15",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l @rm_04_07+,rn_08_11 is opcode_12_15=0b0110 & rn_08_11 & rm_04_07 & opcode_00_03=0b0110 & (opcode_04_07=opcode_08_11)\n{\n rn_08_11 = *:4 rm_04_07;\n}",
"sleigh_comments": "the following two instructions share the same opcodes but differ if rm == rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0110",
"example_usage": "void MOVLP (int m, int n)\n{\n R[n] = Read_32 (R[m]);\n if (n != m)\n R[m] += 4;\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\n Data address error\nInitial page write exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "16",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b rm_04_07,@-rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0100\n{\n rn_08_11 = rn_08_11 -1;\n *:1 rn_08_11 = rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVBM (int m, int n)\n{\n Write_8 (R[n] - 1, R[m]);\n R[n] -= 1;\n PC += 2;\n}",
"possible_exceptions":"Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "17",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w rm_04_07,@-rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0101\n{\n rn_08_11 = rn_08_11 -2;\n *:2 rn_08_11 = rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVWM (int m, int n)\n{\n Write_16 (R[n] - 2, R[m]);\n R[n] -= 2;\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error\nInitial page write exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "18",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l rm_04_07,@-rn_08_11 is opcode_12_15=0b0010 & rn_08_11 & rm_04_07 & opcode_00_03=0b0110\n{\n rn_08_11 = rn_08_11 -4;\n *:4 rn_08_11 = rm_04_07;\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0010",
"example_usage": "void MOVLM (int m, int n)\n{\n Write_32 (R[n] - 4, R[m]);\n R[n] -= 4;\n PC += 2;\n}",
"possible_exceptions":"Data TLB multiple-hit exception\nData TLB miss exception\nData TLB protection violation exception\nData address error\nInitial page write exception"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "19",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b @-rm_08_11, r0\n is r0 & opcode_12_15=0b0100 & rm_08_11 & opcode_00_07=0b11001011\n{\n rm_08_11 = rm_08_11 - 1;\n r0 = sext(*:1 (rm_08_11));\n}",
"sleigh_comments": "MOV.B @-Rm, R0 0100mmmm11001011 Rm - 1 β Rm, (Rm) β sign extension β R0",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSBM (int m)\n{\n R[m] -= 1;\n R[0] = Read_16 (R[m]);\n if ((R[0] & 0x80) == 0)\n R[0] &= 0x000000FF;\n else\n R[0] |= 0xFFFFFF00;\n PC+=2;\n}",
"possible_exceptions":"Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "20",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w @-rm_08_11, r0 is r0 & opcode_12_15=0b0100 & rm_08_11 & opcode_00_07=0b11011011 \n{\n rm_08_11 = rm_08_11 - 2;\n r0 = sext(*:2 (rm_08_11));\n}",
"sleigh_comments": "MOV.W @-Rm, R0 0100mmmm11011011 Rm - 2 β Rm, (Rm) β sign extension β R0",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSWM (int m) \n{\n R[m]-= 2;\n R[0] = Read_16 (R[m]);\n if ((R[0] & 0x8000) == 0)\n R[0] &= 0x0000FFFF;\n else \n R[0] |= 0xFFFF0000; \n PC += 2;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "21",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l @-rm_08_11, r0\n is r0 & opcode_12_15=0b0100 & rm_08_11 & opcode_00_07=0b11101011\n{\n rm_08_11 = rm_08_11 - 4;\n r0 = *:4 (rm_08_11);\n}",
"sleigh_comments": "MOV.L @-Rm, R0 0100mmmm11101011 Rm - 4 β Rm, (Rm) β R0",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination..",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSLM (int m)\n{\n R[m] -= 4;\n R[0] = Read_32 (R[m]);\n PC += 2;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "22",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b r0, @rn_08_11+\n is r0 & opcode_12_15=0b0100 & rn_08_11 & opcode_00_07=0b10001011\n{\n *:1 (rn_08_11) = r0;\n rn_08_11 = rn_08_11 + 1;\n}",
"sleigh_comments": "MOV.B R0, @Rn+ 0100nnnn10001011 R0 β (Rn), Rn + 1 β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSBP (int n)\n{\n Write_8 (R[n], R[0]);\n R[n] += 1;\n PC += 2;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "23",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w r0, @rn_08_11+\n is r0 & opcode_12_15=0b0100 & rn_08_11 & opcode_00_07=0b10011011\n{\n *:2 (rn_08_11) = r0;\n rn_08_11 = rn_08_11 + 2;\n}",
"sleigh_comments": "MOV.W R0, @Rn+ 0100nnnn10011011 R0 β (Rn), Rn + 2 β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSWP (int n)\n{\n Write_16 (R[n], R[0]);\n R[n] += 2;\n PC += 2;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "24",
"language": "Sleigh",
"instruction": "mov.l",
"sleigh_code": ":mov.l r0, @rn_08_11+\n is r0 & opcode_12_15=0b0100 & rn_08_11 & opcode_00_07=0b10101011\n{\n *:4 (rn_08_11) = r0;\n rn_08_11 = rn_08_11 + 4;\n}",
"sleigh_comments": "MOV.L R0, @Rn+ 0100nnnn10101011 R0 β (Rn), Rn + 4 β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination.",
"feature": "Data Transfer Instruction",
"opcode": "0100",
"example_usage": "void MOVRSLP (int n)\n{\n Write_32 (R[n], R[0]);\n R[n] += 4;\n PC += 2;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "25",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b @(disp_00_03,rm_04_07),r0 is r0 & opcode_08_15=0b10000100 & rm_04_07 & disp_00_03\n{\n r0 = sext(*:1 (disp_00_03 + rm_04_07));\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The 4-bit displacement is only zero-extended, so a range up to +15 bytes can be specified. If a memory operand cannot be reached, the @(R0,Rn) mode can be used instead. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "10000100",
"example_usage": "void MOVBL4 (int m, int d)\n{\n long disp = (0x0000000F & (long)d);\n R[0] = Read_8 (R[m] + disp);\n if ((R[0] & 0x80) == 0)\n R[0] &= 0x000000FF;\n else\n R[0] |= 0xFFFFFF00;\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\n Data TLB miss exception\n Data TLB protection violation exception\n Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "26",
"language": "Sleigh",
"instruction": "mov.b",
"sleigh_code": ":mov.b @(l_disp_00_11, l_rm_20_23), l_rn_24_27 is l_opcode_28_31=0b0011 & l_rn_24_27 & l_rm_20_23 & l_opcode_16_19=0b0001 & l_opcode_12_15=0b0100 & l_disp_00_11\n{\n l_rn_24_27 = sext(*:1 (l_rm_20_23 + l_disp_00_11));\n}",
"sleigh_comments": "MOV.B @(disp12, Rm), Rn 0011nnnnmmmm0001 0100dddddddddddd (disp+Rm) β sign extension β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. This instruction is ideal for data access in a structure or the stack. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0011",
"example_usage": "void MOVBL12 (int d, int m, int n)\n{\n long disp = (0x00000FFF & (long)d);\n R[n] = Read_8 (R[m] + disp);\n if ((R[n] & 0x80) == 0)\n R[n] &= 0x000000FF;\n else\n R[n] |= 0xFFFFFF00;\n PC += 4;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "27",
"language": "Sleigh",
"instruction": "movu.b",
"sleigh_code": ":movu.b @(l_disp_00_11, l_rm_20_23), l_rn_24_27\n is l_opcode_28_31=0b0011 & l_rn_24_27 & l_rm_20_23 & l_opcode_16_19=0b0001 & l_opcode_12_15=0b1000 & l_disp_00_11\n{\n l_rn_24_27 = zext(*:1 (l_disp_00_11 + l_rm_20_23));\n}",
"sleigh_comments": "MOVU.B @(disp12,Rm), Rn 0011nnnnmmmm0001 1000dddddddddddd (disp+Rm) β zero extension β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. This instruction is ideal for data access in a structure or the stack. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0011",
"example_usage": "void MOVBUL12 (int d, int m, int n)\n{\n long disp = (0x00000FFF & (long)d);\n R[n] = Read_8 (R[m] + disp);\n R[n] &= 0x000000FF;\n PC += 4;\n}",
"possible_exceptions": ""
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "28",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w @(disp,rm_04_07),r0 is r0 & opcode_08_15=0b10000101 & rm_04_07 & disp_00_03 [ disp = disp_00_03 << 1; ]\n{\n r0 = sext(*:2 (disp + rm_04_07));\n}",
"sleigh_comments": "",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. The 4-bit displacement is multiplied by two after zero-extension, enabling a range up to +30 bytes to be specified. If a memory operand cannot be reached, the @(R0,Rn) mode can be used instead. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "10000101",
"example_usage": "void MOVWL4 (int m, int d)\n long disp = (0x0000000F & (long)d);\n R[0] = Read_16 (R[m] + (disp << 1));\n if ((R[0] & 0x8000) == 0)\n R[0] &= 0x0000FFFF;\n else\n R[0] |= 0xFFFF0000;\n PC += 2;\n}",
"possible_exceptions": "Data TLB multiple-hit exception\n Data TLB miss exception\n Data TLB protection violation exception\n Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
},
{
"id": "29",
"language": "Sleigh",
"instruction": "mov.w",
"sleigh_code": ":mov.w @(disp, l_rm_20_23), l_rn_24_27\n is l_opcode_28_31=0b0011 & l_rn_24_27 & l_rm_20_23 & l_opcode_16_19=0b0001 & l_opcode_12_15=0b0101 & l_disp_00_11\n [ disp = 2*l_disp_00_11; ]\n{\n l_rn_24_27 = sext(*:2 (l_rm_20_23 + disp));\n}",
"sleigh_comments": "MOV.W @(disp12, Rm), Rn 0011nnnnmmmm0001 0101dddddddddddd (dispΓ2+Rm) β sign extension β Rn",
"functionality": "",
"documentation": {
"official_documentation": "Renesas 32-Bit RISC Microcomputer SuperH",
"processor": "SuperH",
"instruction_details": "Transfers the source operand to the destination. This instruction is ideal for data access in a structure or the stack. The loaded data is sign-extended to 32 bit before being stored in the destination register.",
"feature": "Data Transfer Instruction",
"opcode": "0011",
"example_usage": "void MOVWL12 (int d, int m, int n)\n{\n long disp = (0x00000FFF & (long)d);\n R[n] = Read_16 (R[m] + (disp << 1));\n if ((R[n] & 0x8000) == 0)\n R[n] &= 0x0000FFFF;\n else\n R[n] |= 0xFFFF0000;\n PC += 4;\n}",
"possible_exceptions": "Data address error"
},
"annotations": {
"complexity": null,
"use_cases": "",
"known_issues": ""
}
}
]
}
|