Home | History | Annotate | Download | only in xstormy16
      1  .data
      2 foodata: .word 42
      3  .text
      4 footext:
      5 	.text
      6 	.global movlmemimm
      7 movlmemimm:
      8 	mov.b 0,#0
      9 	mov.w 255,#65535
     10 	mov.w 128,#32768
     11 	mov.b 127,#32767
     12 	mov.w 1,#1
     13 	mov.w 81,#64681
     14 	mov.w 247,#42230
     15 	mov.b 84,#16647
     16 	.text
     17 	.global movhmemimm
     18 movhmemimm:
     19 	mov.b 0x7f00+0,#0
     20 	mov.w 0x7f00+255,#65535
     21 	mov.w 0x7f00+128,#32768
     22 	mov.b 0x7f00+127,#32767
     23 	mov.w 0x7f00+1,#1
     24 	mov.b 0x7f00+165,#1944
     25 	mov.w 0x7f00+186,#11517
     26 	mov.b 0x7f00+63,#25556
     27 	.text
     28 	.global movlgrmem
     29 movlgrmem:
     30 	mov.b r0,0
     31 	mov.w r7,255
     32 	mov.w r4,128
     33 	mov.b r3,127
     34 	mov.w r1,1
     35 	mov.w r6,179
     36 	mov.w r0,183
     37 	mov.b r3,41
     38 	.text
     39 	.global movhgrmem
     40 movhgrmem:
     41 	mov.b r0,0x7f00+0
     42 	mov.w r7,0x7f00+255
     43 	mov.w r4,0x7f00+128
     44 	mov.b r3,0x7f00+127
     45 	mov.w r1,0x7f00+1
     46 	mov.b r2,0x7f00+114
     47 	mov.w r2,0x7f00+210
     48 	mov.w r5,0x7f00+181
     49 	.text
     50 	.global movlmemgr
     51 movlmemgr:
     52 	mov.b 0,r0
     53 	mov.w 255,r7
     54 	mov.w 128,r4
     55 	mov.b 127,r3
     56 	mov.w 1,r1
     57 	mov.w 137,r0
     58 	mov.w 26,r0
     59 	mov.b 127,r4
     60 	.text
     61 	.global movhmemgr
     62 movhmemgr:
     63 	mov.b 0x7f00+0,r0
     64 	mov.w 0x7f00+255,r7
     65 	mov.w 0x7f00+128,r4
     66 	mov.b 0x7f00+127,r3
     67 	mov.w 0x7f00+1,r1
     68 	mov.w 0x7f00+98,r3
     69 	mov.w 0x7f00+135,r7
     70 	mov.b 0x7f00+229,r2
     71 	.text
     72 	.global movgrgri
     73 movgrgri:
     74 	mov.b r0,(r0)
     75 	mov.w r7,(r15)
     76 	mov.w r4,(r8)
     77 	mov.b r3,(r7)
     78 	mov.w r1,(r1)
     79 	mov.w r6,(r4)
     80 	mov.b r0,(r12)
     81 	mov.w r5,(r9)
     82 	.text
     83 	.global movgrgripostinc
     84 movgrgripostinc:
     85 	mov.b r0,(r0++)
     86 	mov.w r7,(r15++)
     87 	mov.w r4,(r8++)
     88 	mov.b r3,(r7++)
     89 	mov.w r1,(r1++)
     90 	mov.w r4,(r8++)
     91 	mov.w r3,(r12++)
     92 	mov.b r6,(r4++)
     93 	.text
     94 	.global movgrgripredec
     95 movgrgripredec:
     96 	mov.b r0,(--r0)
     97 	mov.w r7,(--r15)
     98 	mov.w r4,(--r8)
     99 	mov.b r3,(--r7)
    100 	mov.w r1,(--r1)
    101 	mov.w r5,(--r9)
    102 	mov.w r4,(--r14)
    103 	mov.b r4,(--r7)
    104 	.text
    105 	.global movgrigr
    106 movgrigr:
    107 	mov.b (r0),r0
    108 	mov.w (r15),r7
    109 	mov.w (r8),r4
    110 	mov.b (r7),r3
    111 	mov.w (r1),r1
    112 	mov.w (r4),r3
    113 	mov.b (r3),r6
    114 	mov.w (r7),r0
    115 	.text
    116 	.global movgripostincgr
    117 movgripostincgr:
    118 	mov.b (r0++),r0
    119 	mov.w (r15++),r7
    120 	mov.w (r8++),r4
    121 	mov.b (r7++),r3
    122 	mov.w (r1++),r1
    123 	mov.w (r12++),r5
    124 	mov.b (r4++),r2
    125 	mov.b (r11++),r6
    126 	.text
    127 	.global movgripredecgr
    128 movgripredecgr:
    129 	mov.b (--r0),r0
    130 	mov.w (--r15),r7
    131 	mov.w (--r8),r4
    132 	mov.b (--r7),r3
    133 	mov.w (--r1),r1
    134 	mov.b (--r8),r3
    135 	mov.b (--r11),r4
    136 	mov.w (--r1),r6
    137 	.text
    138 	.global movgrgrii
    139 movgrgrii:
    140 	mov.b r0,(r0,0)
    141 	mov.w r7,(r15,-1)
    142 	mov.w r4,(r8,-2048)
    143 	mov.b r3,(r7,2047)
    144 	mov.w r1,(r1,1)
    145 	mov.w r6,(r8,-452)
    146 	mov.w r4,(r11,572)
    147 	mov.b r1,(r1,-1718)
    148 	.text
    149 	.global movgrgriipostinc
    150 movgrgriipostinc:
    151 	mov.b r0,(r0++,0)
    152 	mov.w r7,(r15++,-1)
    153 	mov.w r4,(r8++,-2048)
    154 	mov.b r3,(r7++,2047)
    155 	mov.w r1,(r1++,1)
    156 	mov.w r6,(r0++,-64)
    157 	mov.b r7,(r15++,1060)
    158 	mov.b r0,(r7++,847)
    159 	.text
    160 	.global movgrgriipredec
    161 movgrgriipredec:
    162 	mov.b r0,(--r0,0)
    163 	mov.w r7,(--r15,-1)
    164 	mov.w r4,(--r8,-2048)
    165 	mov.b r3,(--r7,2047)
    166 	mov.w r1,(--r1,1)
    167 	mov.w r0,(--r15,1780)
    168 	mov.w r6,(--r1,1506)
    169 	mov.w r7,(--r3,-2033)
    170 	.text
    171 	.global movgriigr
    172 movgriigr:
    173 	mov.b (r0,0),r0
    174 	mov.w (r15,-1),r7
    175 	mov.w (r8,-2048),r4
    176 	mov.b (r7,2047),r3
    177 	mov.w (r1,1),r1
    178 	mov.w (r7,1948),r5
    179 	mov.b (r3,-844),r4
    180 	mov.w (r15,1704),r0
    181 	.text
    182 	.global movgriipostincgr
    183 movgriipostincgr:
    184 	mov.b (r0++,0),r0
    185 	mov.w (r15++,-1),r7
    186 	mov.w (r8++,-2048),r4
    187 	mov.b (r7++,2047),r3
    188 	mov.w (r1++,1),r1
    189 	mov.w (r2++,-176),r7
    190 	mov.w (r8++,1389),r4
    191 	mov.b (r3++,47),r0
    192 	.text
    193 	.global movgriipredecgr
    194 movgriipredecgr:
    195 	mov.b (--r0,0),r0
    196 	mov.w (--r15,-1),r7
    197 	mov.w (--r8,-2048),r4
    198 	mov.b (--r7,2047),r3
    199 	mov.w (--r1,1),r1
    200 	mov.b (--r8,1004),r4
    201 	mov.w (--r14,-1444),r2
    202 	mov.b (--r5,-927),r4
    203 	.text
    204 	.global movgrgr
    205 movgrgr:
    206 	mov r0,r0
    207 	mov r15,r15
    208 	mov r8,r8
    209 	mov r7,r7
    210 	mov r1,r1
    211 	mov r9,r14
    212 	mov r7,r15
    213 	mov r12,r15
    214 	.text
    215 	.global movimm8
    216 movimm8:
    217 	mov Rx,#0
    218 	mov Rx,#255
    219 	mov Rx,#128
    220 	mov Rx,#127
    221 	mov Rx,#1
    222 	mov Rx,#136
    223 	mov Rx,#83
    224 	mov Rx,#104
    225 	.text
    226 	.global movwimm8
    227 movwimm8:
    228 	mov.w Rx,#0
    229 	mov.w Rx,#255
    230 	mov.w Rx,#128
    231 	mov.w Rx,#127
    232 	mov.w Rx,#1
    233 	mov.w Rx,#92
    234 	mov.w Rx,#97
    235 	mov.w Rx,#4
    236 	.text
    237 	.global movgrimm8
    238 movgrimm8:
    239 	mov r0,#0
    240 	mov r7,#255
    241 	mov r4,#128
    242 	mov r3,#127
    243 	mov r1,#1
    244 	mov r2,#206
    245 	mov r4,#55
    246 	mov r2,#3
    247 	.text
    248 	.global movwgrimm8
    249 movwgrimm8:
    250 	mov.w r0,#0
    251 	mov.w r7,#255
    252 	mov.w r4,#128
    253 	mov.w r3,#127
    254 	mov.w r1,#1
    255 	mov.w r4,#243
    256 	mov.w r3,#55
    257 	mov.w r2,#108
    258 	.text
    259 	.global movgrimm16
    260 movgrimm16:
    261 	mov r0,#0
    262 	mov r15,#65535
    263 	mov r8,#32768
    264 	mov r7,#32767
    265 	mov r1,#1
    266 	mov r4,#20066
    267 	mov r3,#7190
    268 	mov r2,#15972
    269 	.text
    270 	.global movwgrimm16
    271 movwgrimm16:
    272 	mov.w r0,#0
    273 	mov.w r15,#65535
    274 	mov.w r8,#32768
    275 	mov.w r7,#32767
    276 	mov.w r1,#1
    277 	mov.w r6,#16648
    278 	mov.w r8,#26865
    279 	mov.w r10,#20010
    280 	.text
    281 	.global movlowgr
    282 movlowgr:
    283 	mov.b r0,RxL
    284 	mov.b r15,RxL
    285 	mov.b r8,RxL
    286 	mov.b r7,RxL
    287 	mov.b r1,RxL
    288 	mov.b r11,RxL
    289 	mov.b r5,RxL
    290 	mov.b r2,RxL
    291 	.text
    292 	.global movhighgr
    293 movhighgr:
    294 	mov.b r0,RxH
    295 	mov.b r15,RxH
    296 	mov.b r8,RxH
    297 	mov.b r7,RxH
    298 	mov.b r1,RxH
    299 	mov.b r2,RxH
    300 	mov.b r7,RxH
    301 	mov.b r2,RxH
    302 	.text
    303 	.global movfgrgri
    304 movfgrgri:
    305 	movf.b r0,(r0)
    306 	movf.w r7,(r15)
    307 	movf.w r4,(r8)
    308 	movf.b r3,(r7)
    309 	movf.w r1,(r1)
    310 	movf.b r6,(r15)
    311 	movf.b r1,(r10)
    312 	movf.b r6,(r1)
    313 	.text
    314 	.global movfgrgripostinc
    315 movfgrgripostinc:
    316 	movf.b r0,(r0++)
    317 	movf.w r7,(r15++)
    318 	movf.w r4,(r8++)
    319 	movf.b r3,(r7++)
    320 	movf.w r1,(r1++)
    321 	movf.b r2,(r5++)
    322 	movf.w r5,(r10++)
    323 	movf.w r7,(r5++)
    324 	.text
    325 	.global movfgrgripredec
    326 movfgrgripredec:
    327 	movf.b r0,(--r0)
    328 	movf.w r7,(--r15)
    329 	movf.w r4,(--r8)
    330 	movf.b r3,(--r7)
    331 	movf.w r1,(--r1)
    332 	movf.w r6,(--r10)
    333 	movf.b r1,(--r14)
    334 	movf.w r3,(--r7)
    335 	.text
    336 	.global movfgrigr
    337 movfgrigr:
    338 	movf.b (r0),r0
    339 	movf.w (r15),r7
    340 	movf.w (r8),r4
    341 	movf.b (r7),r3
    342 	movf.w (r1),r1
    343 	movf.b (r5),r4
    344 	movf.b (r3),r4
    345 	movf.w (r12),r3
    346 	.text
    347 	.global movfgripostincgr
    348 movfgripostincgr:
    349 	movf.b (r0++),r0
    350 	movf.w (r15++),r7
    351 	movf.w (r8++),r4
    352 	movf.b (r7++),r3
    353 	movf.w (r1++),r1
    354 	movf.b (r9++),r5
    355 	movf.w (r10++),r4
    356 	movf.b (r9++),r1
    357 	.text
    358 	.global movfgripredecgr
    359 movfgripredecgr:
    360 	movf.b (--r0),r0
    361 	movf.w (--r15),r7
    362 	movf.w (--r8),r4
    363 	movf.b (--r7),r3
    364 	movf.w (--r1),r1
    365 	movf.b (--r0),r2
    366 	movf.w (--r11),r2
    367 	movf.b (--r10),r5
    368 	.text
    369 	.global movfgrgrii
    370 movfgrgrii:
    371 	movf.b r0,(r8,r0,0)
    372 	movf.w r7,(r15,r15,-1)
    373 	movf.w r4,(r12,r8,-2048)
    374 	movf.b r3,(r11,r7,2047)
    375 	movf.w r1,(r9,r1,1)
    376 	movf.b r7,(r15,r0,1473)
    377 	movf.w r2,(r8,r9,-1522)
    378 	movf.w r2,(r13,r1,480)
    379 	.text
    380 	.global movfgrgriipostinc
    381 movfgrgriipostinc:
    382 	movf.b r0,(r8,r0++,0)
    383 	movf.w r7,(r15,r15++,-1)
    384 	movf.w r4,(r12,r8++,-2048)
    385 	movf.b r3,(r11,r7++,2047)
    386 	movf.w r1,(r9,r1++,1)
    387 	movf.b r1,(r8,r2++,1398)
    388 	movf.w r4,(r8,r9++,-778)
    389 	movf.w r1,(r13,r14++,1564)
    390 	.text
    391 	.global movfgrgriipredec
    392 movfgrgriipredec:
    393 	movf.b r0,(r8,--r0,0)
    394 	movf.w r7,(r15,--r15,-1)
    395 	movf.w r4,(r12,--r8,-2048)
    396 	movf.b r3,(r11,--r7,2047)
    397 	movf.w r1,(r9,--r1,1)
    398 	movf.b r6,(r8,--r7,254)
    399 	movf.w r5,(r12,--r12,1673)
    400 	movf.b r0,(r8,--r10,-38)
    401 	.text
    402 	.global movfgriigr
    403 movfgriigr:
    404 	movf.b (r8,r0,0),r0
    405 	movf.w (r15,r15,-1),r7
    406 	movf.w (r12,r8,-2048),r4
    407 	movf.b (r11,r7,2047),r3
    408 	movf.w (r9,r1,1),r1
    409 	movf.w (r15,r2,-1636),r3
    410 	movf.w (r14,r12,1626),r1
    411 	movf.b (r11,r14,1540),r0
    412 	.text
    413 	.global movfgriipostincgr
    414 movfgriipostincgr:
    415 	movf.b (r8,r0++,0),r0
    416 	movf.w (r15,r15++,-1),r7
    417 	movf.w (r12,r8++,-2048),r4
    418 	movf.b (r11,r7++,2047),r3
    419 	movf.w (r9,r1++,1),r1
    420 	movf.b (r15,r13++,466),r3
    421 	movf.b (r11,r11++,250),r4
    422 	movf.b (r10,r10++,-1480),r7
    423 	.text
    424 	.global movfgriipredecgr
    425 movfgriipredecgr:
    426 	movf.b (r8,--r0,0),r0
    427 	movf.w (r15,--r15,-1),r7
    428 	movf.w (r12,--r8,-2048),r4
    429 	movf.b (r11,--r7,2047),r3
    430 	movf.w (r9,--r1,1),r1
    431 	movf.b (r13,--r10,-608),r0
    432 	movf.b (r9,--r11,831),r7
    433 	movf.w (r15,--r15,-2036),r6
    434 	.text
    435 	.global maskgrgr
    436 maskgrgr:
    437 	mask r0,r0
    438 	mask r15,r15
    439 	mask r8,r8
    440 	mask r7,r7
    441 	mask r1,r1
    442 	mask r4,r0
    443 	mask r6,r11
    444 	mask r8,r4
    445 	.text
    446 	.global maskgrimm16
    447 maskgrimm16:
    448 	mask r0,#0
    449 	mask r15,#65535
    450 	mask r8,#32768
    451 	mask r7,#32767
    452 	mask r1,#1
    453 	mask r7,#18153
    454 	mask r15,#7524
    455 	mask r14,#34349
    456 	.text
    457 	.global pushgr
    458 pushgr:
    459 	push r0
    460 	push r15
    461 	push r8
    462 	push r7
    463 	push r1
    464 	push r9
    465 	push r4
    466 	push r3
    467 	.text
    468 	.global popgr
    469 popgr:
    470 	pop r0
    471 	pop r15
    472 	pop r8
    473 	pop r7
    474 	pop r1
    475 	pop r3
    476 	pop r2
    477 	pop r12
    478 	.text
    479 	.global swpn
    480 swpn:
    481 	swpn r0
    482 	swpn r15
    483 	swpn r8
    484 	swpn r7
    485 	swpn r1
    486 	swpn r15
    487 	swpn r4
    488 	swpn r3
    489 	.text
    490 	.global swpb
    491 swpb:
    492 	swpb r0
    493 	swpb r15
    494 	swpb r8
    495 	swpb r7
    496 	swpb r1
    497 	swpb r2
    498 	swpb r12
    499 	swpb r2
    500 	.text
    501 	.global swpw
    502 swpw:
    503 	swpw r0,r0
    504 	swpw r15,r15
    505 	swpw r8,r8
    506 	swpw r7,r7
    507 	swpw r1,r1
    508 	swpw r12,r4
    509 	swpw r8,r2
    510 	swpw r5,r13
    511 	.text
    512 	.global andgrgr
    513 andgrgr:
    514 	and r0,r0
    515 	and r15,r15
    516 	and r8,r8
    517 	and r7,r7
    518 	and r1,r1
    519 	and r2,r2
    520 	and r15,r5
    521 	and r7,r5
    522 	.text
    523 	.global andimm8
    524 andimm8:
    525 	and Rx,#0
    526 	and Rx,#255
    527 	and Rx,#128
    528 	and Rx,#127
    529 	and Rx,#1
    530 	and Rx,#206
    531 	and Rx,#11
    532 	and Rx,#232
    533 	.text
    534 	.global andgrimm16
    535 andgrimm16:
    536 	and r0,#0
    537 	and r15,#65535
    538 	and r8,#32768
    539 	and r7,#32767
    540 	and r1,#1
    541 	and r10,#17229
    542 	and r11,#61451
    543 	and r5,#46925
    544 	.text
    545 	.global orgrgr
    546 orgrgr:
    547 	or r0,r0
    548 	or r15,r15
    549 	or r8,r8
    550 	or r7,r7
    551 	or r1,r1
    552 	or r3,r5
    553 	or r14,r15
    554 	or r5,r12
    555 	.text
    556 	.global orimm8
    557 orimm8:
    558 	or Rx,#0
    559 	or Rx,#255
    560 	or Rx,#128
    561 	or Rx,#127
    562 	or Rx,#1
    563 	or Rx,#4
    564 	or Rx,#38
    565 	or Rx,#52
    566 	.text
    567 	.global orgrimm16
    568 orgrimm16:
    569 	or r0,#0
    570 	or r15,#65535
    571 	or r8,#32768
    572 	or r7,#32767
    573 	or r1,#1
    574 	or r2,#64563
    575 	or r2,#18395
    576 	or r1,#63059
    577 	.text
    578 	.global xorgrgr
    579 xorgrgr:
    580 	xor r0,r0
    581 	xor r15,r15
    582 	xor r8,r8
    583 	xor r7,r7
    584 	xor r1,r1
    585 	xor r14,r1
    586 	xor r9,r9
    587 	xor r12,r8
    588 	.text
    589 	.global xorimm8
    590 xorimm8:
    591 	xor Rx,#0
    592 	xor Rx,#255
    593 	xor Rx,#128
    594 	xor Rx,#127
    595 	xor Rx,#1
    596 	xor Rx,#208
    597 	xor Rx,#126
    598 	xor Rx,#55
    599 	.text
    600 	.global xorgrimm16
    601 xorgrimm16:
    602 	xor r0,#0
    603 	xor r15,#65535
    604 	xor r8,#32768
    605 	xor r7,#32767
    606 	xor r1,#1
    607 	xor r15,#56437
    608 	xor r3,#901
    609 	xor r2,#37017
    610 	.text
    611 	.global notgr
    612 notgr:
    613 	not r0
    614 	not r15
    615 	not r8
    616 	not r7
    617 	not r1
    618 	not r4
    619 	not r3
    620 	not r3
    621 	.text
    622 	.global addgrgr
    623 addgrgr:
    624 	add r0,r0
    625 	add r15,r15
    626 	add r8,r8
    627 	add r7,r7
    628 	add r1,r1
    629 	add r12,r7
    630 	add r1,r10
    631 	add r14,r14
    632 	.text
    633 	.global addgrimm4
    634 addgrimm4:
    635 	add r0,#0
    636 	add r15,#15
    637 	add r8,#8
    638 	add r7,#7
    639 	add r1,#1
    640 	add r7,#0
    641 	add r10,#9
    642 	add r7,#8
    643 	.text
    644 	.global addimm8
    645 addimm8:
    646 	add Rx,#0
    647 	add Rx,#255
    648 	add Rx,#128
    649 	add Rx,#127
    650 	add Rx,#1
    651 	add Rx,#25
    652 	add Rx,#247
    653 	add Rx,#221
    654 	.text
    655 	.global addgrimm16
    656 addgrimm16:
    657 	add r0,#0
    658 	add r15,#255
    659 	add r8,#128
    660 	add r7,#127
    661 	add r1,#1
    662 	add r3,#99
    663 	add r0,#15
    664 	add r7,#214
    665 	.text
    666 	.global adcgrgr
    667 adcgrgr:
    668 	adc r0,r0
    669 	adc r15,r15
    670 	adc r8,r8
    671 	adc r7,r7
    672 	adc r1,r1
    673 	adc r2,r13
    674 	adc r14,r10
    675 	adc r2,r15
    676 	.text
    677 	.global adcgrimm4
    678 adcgrimm4:
    679 	adc r0,#0
    680 	adc r15,#15
    681 	adc r8,#8
    682 	adc r7,#7
    683 	adc r1,#1
    684 	adc r15,#1
    685 	adc r1,#3
    686 	adc r6,#11
    687 	.text
    688 	.global adcimm8
    689 adcimm8:
    690 	adc Rx,#0
    691 	adc Rx,#255
    692 	adc Rx,#128
    693 	adc Rx,#127
    694 	adc Rx,#1
    695 	adc Rx,#225
    696 	adc Rx,#75
    697 	adc Rx,#18
    698 	.text
    699 	.global adcgrimm16
    700 adcgrimm16:
    701 	adc r0,#0
    702 	adc r15,#65535
    703 	adc r8,#32768
    704 	adc r7,#32767
    705 	adc r1,#1
    706 	adc r13,#63129
    707 	adc r3,#23795
    708 	adc r11,#49245
    709 	.text
    710 	.global subgrgr
    711 subgrgr:
    712 	sub r0,r0
    713 	sub r15,r15
    714 	sub r8,r8
    715 	sub r7,r7
    716 	sub r1,r1
    717 	sub r8,r8
    718 	sub r9,r9
    719 	sub r9,r15
    720 	.text
    721 	.global subgrimm4
    722 subgrimm4:
    723 	sub r0,#0
    724 	sub r15,#15
    725 	sub r8,#8
    726 	sub r7,#7
    727 	sub r1,#1
    728 	sub r2,#15
    729 	sub r12,#9
    730 	sub r8,#4
    731 	.text
    732 	.global subimm8
    733 subimm8:
    734 	sub Rx,#0
    735 	sub Rx,#255
    736 	sub Rx,#128
    737 	sub Rx,#127
    738 	sub Rx,#1
    739 	sub Rx,#205
    740 	sub Rx,#153
    741 	sub Rx,#217
    742 	.text
    743 	.global subgrimm16
    744 subgrimm16:
    745 	sub r0,#0
    746 	sub r15,#65535
    747 	sub r8,#32768
    748 	sub r7,#32767
    749 	sub r1,#1
    750 	sub r3,#51895
    751 	sub r11,#23617
    752 	sub r10,#7754
    753 	.text
    754 	.global sbcgrgr
    755 sbcgrgr:
    756 	sbc r0,r0
    757 	sbc r15,r15
    758 	sbc r8,r8
    759 	sbc r7,r7
    760 	sbc r1,r1
    761 	sbc r11,r2
    762 	sbc r9,r1
    763 	sbc r4,r15
    764 	.text
    765 	.global sbcgrimm4
    766 sbcgrimm4:
    767 	sbc r0,#0
    768 	sbc r15,#15
    769 	sbc r8,#8
    770 	sbc r7,#7
    771 	sbc r1,#1
    772 	sbc r10,#11
    773 	sbc r11,#10
    774 	sbc r13,#10
    775 	.text
    776 	.global sbcgrimm8
    777 sbcgrimm8:
    778 	sbc Rx,#0
    779 	sbc Rx,#255
    780 	sbc Rx,#128
    781 	sbc Rx,#127
    782 	sbc Rx,#1
    783 	sbc Rx,#137
    784 	sbc Rx,#224
    785 	sbc Rx,#156
    786 	.text
    787 	.global sbcgrimm16
    788 sbcgrimm16:
    789 	sbc r0,#0
    790 	sbc r15,#65535
    791 	sbc r8,#32768
    792 	sbc r7,#32767
    793 	sbc r1,#1
    794 	sbc r0,#32507
    795 	sbc r7,#8610
    796 	sbc r14,#20373
    797 	.text
    798 	.global incgr
    799 incgr:
    800 	inc r0
    801 	inc r15
    802 	inc r8
    803 	inc r7
    804 	inc r1
    805 	inc r13
    806 	inc r1
    807 	inc r11
    808 	.text
    809 	.global incgrimm2
    810 incgrimm2:
    811 	inc r0,#0
    812 	inc r15,#3
    813 	inc r8,#2
    814 	inc r7,#1
    815 	inc r1,#1
    816 	inc r14,#1
    817 	inc r5,#0
    818 	inc r12,#3
    819 	.text
    820 	.global decgr
    821 decgr:
    822 	dec r0
    823 	dec r15
    824 	dec r8
    825 	dec r7
    826 	dec r1
    827 	dec r12
    828 	dec r8
    829 	dec r10
    830 	.text
    831 	.global decgrimm2
    832 decgrimm2:
    833 	dec r0,#0
    834 	dec r15,#3
    835 	dec r8,#2
    836 	dec r7,#1
    837 	dec r1,#1
    838 	dec r5,#0
    839 	dec r13,#0
    840 	dec r13,#2
    841 	.text
    842 	.global rrcgrgr
    843 rrcgrgr:
    844 	rrc r0,r0
    845 	rrc r15,r15
    846 	rrc r8,r8
    847 	rrc r7,r7
    848 	rrc r1,r1
    849 	rrc r8,r4
    850 	rrc r10,r14
    851 	rrc r15,r9
    852 	.text
    853 	.global rrcgrimm4
    854 rrcgrimm4:
    855 	rrc r0,#0
    856 	rrc r15,#15
    857 	rrc r8,#8
    858 	rrc r7,#7
    859 	rrc r1,#1
    860 	rrc r11,#3
    861 	rrc r14,#12
    862 	rrc r2,#15
    863 	.text
    864 	.global rlcgrgr
    865 rlcgrgr:
    866 	rlc r0,r0
    867 	rlc r15,r15
    868 	rlc r8,r8
    869 	rlc r7,r7
    870 	rlc r1,r1
    871 	rlc r15,r3
    872 	rlc r15,r7
    873 	rlc r15,r10
    874 	.text
    875 	.global rlcgrimm4
    876 rlcgrimm4:
    877 	rlc r0,#0
    878 	rlc r15,#15
    879 	rlc r8,#8
    880 	rlc r7,#7
    881 	rlc r1,#1
    882 	rlc r8,#2
    883 	rlc r2,#6
    884 	rlc r6,#10
    885 	.text
    886 	.global shrgrgr
    887 shrgrgr:
    888 	shr r0,r0
    889 	shr r15,r15
    890 	shr r8,r8
    891 	shr r7,r7
    892 	shr r1,r1
    893 	shr r13,r2
    894 	shr r7,r8
    895 	shr r6,r8
    896 	.text
    897 	.global shrgrimm
    898 shrgrimm:
    899 	shr r0,#0
    900 	shr r15,#15
    901 	shr r8,#8
    902 	shr r7,#7
    903 	shr r1,#1
    904 	shr r9,#13
    905 	shr r2,#7
    906 	shr r8,#8
    907 	.text
    908 	.global shlgrgr
    909 shlgrgr:
    910 	shl r0,r0
    911 	shl r15,r15
    912 	shl r8,r8
    913 	shl r7,r7
    914 	shl r1,r1
    915 	shl r2,r3
    916 	shl r0,r3
    917 	shl r2,r1
    918 	.text
    919 	.global shlgrimm
    920 shlgrimm:
    921 	shl r0,#0
    922 	shl r15,#15
    923 	shl r8,#8
    924 	shl r7,#7
    925 	shl r1,#1
    926 	shl r6,#13
    927 	shl r3,#6
    928 	shl r15,#15
    929 	.text
    930 	.global asrgrgr
    931 asrgrgr:
    932 	asr r0,r0
    933 	asr r15,r15
    934 	asr r8,r8
    935 	asr r7,r7
    936 	asr r1,r1
    937 	asr r5,r10
    938 	asr r3,r5
    939 	asr r6,r11
    940 	.text
    941 	.global asrgrimm
    942 asrgrimm:
    943 	asr r0,#0
    944 	asr r15,#15
    945 	asr r8,#8
    946 	asr r7,#7
    947 	asr r1,#1
    948 	asr r13,#4
    949 	asr r0,#13
    950 	asr r6,#3
    951 	.text
    952 	.global set1grimm
    953 set1grimm:
    954 	set1 r0,#0
    955 	set1 r15,#15
    956 	set1 r8,#8
    957 	set1 r7,#7
    958 	set1 r1,#1
    959 	set1 r6,#10
    960 	set1 r13,#1
    961 	set1 r13,#15
    962 	.text
    963 	.global set1grgr
    964 set1grgr:
    965 	set1 r0,r0
    966 	set1 r15,r15
    967 	set1 r8,r8
    968 	set1 r7,r7
    969 	set1 r1,r1
    970 	set1 r6,r0
    971 	set1 r6,r7
    972 	set1 r14,r2
    973 	.text
    974 	.global set1lmemimm
    975 set1lmemimm:
    976 	set1 0,#0
    977 	set1 255,#7
    978 	set1 128,#4
    979 	set1 127,#3
    980 	set1 1,#1
    981 	set1 244,#3
    982 	set1 55,#7
    983 	set1 252,#5
    984 	.text
    985 	.global set1hmemimm
    986 set1hmemimm:
    987 	set1 0x7f00+0,#0
    988 	set1 0x7f00+255,#7
    989 	set1 0x7f00+128,#4
    990 	set1 0x7f00+127,#3
    991 	set1 0x7f00+1,#1
    992 	set1 0x7f00+10,#3
    993 	set1 0x7f00+99,#4
    994 	set1 0x7f00+148,#3
    995 	.text
    996 	.global clr1grimm
    997 clr1grimm:
    998 	clr1 r0,#0
    999 	clr1 r15,#15
   1000 	clr1 r8,#8
   1001 	clr1 r7,#7
   1002 	clr1 r1,#1
   1003 	clr1 r12,#0
   1004 	clr1 r8,#11
   1005 	clr1 r7,#7
   1006 	.text
   1007 	.global clr1grgr
   1008 clr1grgr:
   1009 	clr1 r0,r0
   1010 	clr1 r15,r15
   1011 	clr1 r8,r8
   1012 	clr1 r7,r7
   1013 	clr1 r1,r1
   1014 	clr1 r3,r3
   1015 	clr1 r0,r1
   1016 	clr1 r15,r0
   1017 	.text
   1018 	.global clr1lmemimm
   1019 clr1lmemimm:
   1020 	clr1 0,#0
   1021 	clr1 255,#7
   1022 	clr1 128,#4
   1023 	clr1 127,#3
   1024 	clr1 1,#1
   1025 	clr1 114,#7
   1026 	clr1 229,#4
   1027 	clr1 86,#1
   1028 	.text
   1029 	.global clr1hmemimm
   1030 clr1hmemimm:
   1031 	clr1 0x7f00+0,#0
   1032 	clr1 0x7f00+255,#7
   1033 	clr1 0x7f00+128,#4
   1034 	clr1 0x7f00+127,#3
   1035 	clr1 0x7f00+1,#1
   1036 	clr1 0x7f00+44,#3
   1037 	clr1 0x7f00+212,#5
   1038 	clr1 0x7f00+67,#7
   1039 	.text
   1040 	.global cbwgr
   1041 cbwgr:
   1042 	cbw r0
   1043 	cbw r15
   1044 	cbw r8
   1045 	cbw r7
   1046 	cbw r1
   1047 	cbw r8
   1048 	cbw r11
   1049 	cbw r3
   1050 	.text
   1051 	.global revgr
   1052 revgr:
   1053 	rev r0
   1054 	rev r15
   1055 	rev r8
   1056 	rev r7
   1057 	rev r1
   1058 	rev r1
   1059 	rev r1
   1060 	rev r14
   1061 	.text
   1062 	.global bgr
   1063 bgr:
   1064 	br r0
   1065 	br r15
   1066 	br r8
   1067 	br r7
   1068 	br r1
   1069 	br r0
   1070 	br r15
   1071 	br r12
   1072 	.text
   1073 	.global jmp
   1074 jmp:
   1075 	jmp r8,r0
   1076 	jmp r9,r15
   1077 	jmp r9,r8
   1078 	jmp r8,r7
   1079 	jmp r9,r1
   1080 	jmp r9,r7
   1081 	jmp r9,r5
   1082 	jmp r8,r12
   1083 	.text
   1084 	.global jmpf
   1085 jmpf:
   1086 	jmpf 0
   1087 	jmpf 16777215
   1088 	jmpf 8388608
   1089 	jmpf 8388607
   1090 	jmpf 1
   1091 	jmpf 10731629
   1092 	jmpf 15094866
   1093 	jmpf 1464024
   1094 	.text
   1095 	.global callrgr
   1096 callrgr:
   1097 	callr r0
   1098 	callr r15
   1099 	callr r8
   1100 	callr r7
   1101 	callr r1
   1102 	callr r1
   1103 	callr r12
   1104 	callr r8
   1105 	.text
   1106 	.global callgr
   1107 callgr:
   1108 	call r8,r0
   1109 	call r9,r15
   1110 	call r9,r8
   1111 	call r8,r7
   1112 	call r9,r1
   1113 	call r9,r6
   1114 	call r9,r14
   1115 	call r8,r12
   1116 	.text
   1117 	.global callfimm
   1118 callfimm:
   1119 	callf 0
   1120 	callf 16777215
   1121 	callf 8388608
   1122 	callf 8388607
   1123 	callf 1
   1124 	callf 13546070
   1125 	callf 10837983
   1126 	callf 15197875
   1127 	.text
   1128 	.global icallrgr
   1129 icallrgr:
   1130 	icallr r0
   1131 	icallr r15
   1132 	icallr r8
   1133 	icallr r7
   1134 	icallr r1
   1135 	icallr r15
   1136 	icallr r12
   1137 	icallr r9
   1138 	.text
   1139 	.global icallgr
   1140 icallgr:
   1141 	icall r8,r0
   1142 	icall r9,r15
   1143 	icall r9,r8
   1144 	icall r8,r7
   1145 	icall r9,r1
   1146 	icall r9,r10
   1147 	icall r8,r15
   1148 	icall r8,r10
   1149 	.text
   1150 	.global icallfimm
   1151 icallfimm:
   1152 	icallf 0
   1153 	icallf 16777215
   1154 	icallf 8388608
   1155 	icallf 8388607
   1156 	icallf 1
   1157 	icallf 9649954
   1158 	icallf 1979758
   1159 	icallf 7661640
   1160 	.text
   1161 	.global iret
   1162 iret:
   1163 	iret
   1164 	.text
   1165 	.global ret
   1166 ret:
   1167 	ret
   1168 	.text
   1169 	.global mul
   1170 mul:
   1171 	mul
   1172 	.text
   1173 	.global div
   1174 div:
   1175 	div
   1176 	.text
   1177 	.global sdiv
   1178 sdiv:
   1179 	sdiv
   1180 	.text
   1181 	.global divlh
   1182 divlh:
   1183 	divlh
   1184 	.text
   1185 	.global sdivlh
   1186 sdivlh:
   1187 	sdivlh
   1188 	.text
   1189 	.global nop
   1190 nop:
   1191 	nop
   1192 	ret
   1193 	.text
   1194 	.global halt
   1195 halt:
   1196 	halt
   1197 	.text
   1198 	.global hold
   1199 hold:
   1200 	hold
   1201 	.text
   1202 	.global holdx
   1203 holdx:
   1204 	holdx
   1205 	.text
   1206 	.global brk
   1207 brk:
   1208 	brk
   1209 	.text
   1210 	.global bccgrgr
   1211 bccgrgr:
   1212 	bge r0,r0,0+(.+4)
   1213 	bz r15,r15,-1+(.+4)
   1214 	bpl r8,r8,-2048+(.+4)
   1215 	bls r7,r7,2047+(.+4)
   1216 	bnc r1,r1,1+(.+4)
   1217 	bc r3,r13,1799+(.+4)
   1218 	bge r1,r10,-2019+(.+4)
   1219 	bz r0,r5,-1132+(.+4)
   1220 	.text
   1221 	.global bccgrimm8
   1222 bccgrimm8:
   1223 	bge r0,#0,0+(.+4)
   1224 	bz r7,#255,-1+(.+4)
   1225 	bpl r4,#128,-2048+(.+4)
   1226 	bls r3,#127,2047+(.+4)
   1227 	bnc r1,#1,1+(.+4)
   1228 	bnc r3,#8,1473+(.+4)
   1229 	bnz.b r5,#203,1619+(.+4)
   1230 	bc r7,#225,978+(.+4)
   1231 	.text
   1232 	.global bccimm16
   1233 bccimm16:
   1234 	bge Rx,#0,0+(.+4)
   1235 	bz Rx,#65535,-1+(.+4)
   1236 	bpl Rx,#32768,-128+(.+4)
   1237 	bls Rx,#32767,127+(.+4)
   1238 	bnc Rx,#1,1+(.+4)
   1239 	bz.b Rx,#30715,4+(.+4)
   1240 	bnv Rx,#62266,-13+(.+4)
   1241 	bnv Rx,#48178,108+(.+4)
   1242 	.text
   1243 	.global bngrimm4
   1244 bngrimm4:
   1245 	bn r0,#0,0+(.+4)
   1246 	bn r15,#15,-1+(.+4)
   1247 	bn r8,#8,-2048+(.+4)
   1248 	bn r7,#7,2047+(.+4)
   1249 	bn r1,#1,1+(.+4)
   1250 	bn r11,#3,-1975+(.+4)
   1251 	bn r15,#4,-1205+(.+4)
   1252 	bn r10,#8,1691+(.+4)
   1253 	.text
   1254 	.global bngrgr
   1255 bngrgr:
   1256 	bn r0,r0,0+(.+4)
   1257 	bn r15,r15,-1+(.+4)
   1258 	bn r8,r8,-2048+(.+4)
   1259 	bn r7,r7,2047+(.+4)
   1260 	bn r1,r1,1+(.+4)
   1261 	bn r4,r3,1181+(.+4)
   1262 	bn r5,r2,77+(.+4)
   1263 	bn r3,r7,631+(.+4)
   1264 	.text
   1265 	.global bnlmemimm
   1266 bnlmemimm:
   1267 	bn 0,#0,0+(.+4)
   1268 	bn 255,#7,-1+(.+4)
   1269 	bn 128,#4,-2048+(.+4)
   1270 	bn 127,#3,2047+(.+4)
   1271 	bn 1,#1,1+(.+4)
   1272 	bn 153,#7,-847+(.+4)
   1273 	bn 204,#0,-1881+(.+4)
   1274 	bn 242,#7,1396+(.+4)
   1275 	.text
   1276 	.global bnhmemimm
   1277 bnhmemimm:
   1278 	bn 0x7f00+0,#0,0+(.+4)
   1279 	bn 0x7f00+255,#7,-1+(.+4)
   1280 	bn 0x7f00+128,#4,-2048+(.+4)
   1281 	bn 0x7f00+127,#3,2047+(.+4)
   1282 	bn 0x7f00+1,#1,1+(.+4)
   1283 	bn 0x7f00+185,#3,-614+(.+4)
   1284 	bn 0x7f00+105,#1,-668+(.+4)
   1285 	bn 0x7f00+79,#7,1312+(.+4)
   1286 	.text
   1287 	.global bpgrimm4
   1288 bpgrimm4:
   1289 	bp r0,#0,0+(.+4)
   1290 	bp r15,#15,-1+(.+4)
   1291 	bp r8,#8,-2048+(.+4)
   1292 	bp r7,#7,2047+(.+4)
   1293 	bp r1,#1,1+(.+4)
   1294 	bp r0,#12,1075+(.+4)
   1295 	bp r1,#5,551+(.+4)
   1296 	bp r6,#8,1588+(.+4)
   1297 	.text
   1298 	.global bpgrgr
   1299 bpgrgr:
   1300 	bp r0,r0,0+(.+4)
   1301 	bp r15,r15,-1+(.+4)
   1302 	bp r8,r8,-2048+(.+4)
   1303 	bp r7,r7,2047+(.+4)
   1304 	bp r1,r1,1+(.+4)
   1305 	bp r4,r9,-614+(.+4)
   1306 	bp r9,r10,-1360+(.+4)
   1307 	bp r4,r1,407+(.+4)
   1308 	.text
   1309 	.global bplmemimm
   1310 bplmemimm:
   1311 	bp 0,#0,0+(.+4)
   1312 	bp 255,#7,-1+(.+4)
   1313 	bp 128,#4,-2048+(.+4)
   1314 	bp 127,#3,2047+(.+4)
   1315 	bp 1,#1,1+(.+4)
   1316 	bp 193,#3,-398+(.+4)
   1317 	bp 250,#2,-1553+(.+4)
   1318 	bp 180,#6,579+(.+4)
   1319 	.text
   1320 	.global bphmemimm
   1321 bphmemimm:
   1322 	bp 0x7f00+0,#0,0+(.+4)
   1323 	bp 0x7f00+255,#7,-1+(.+4)
   1324 	bp 0x7f00+128,#4,-2048+(.+4)
   1325 	bp 0x7f00+127,#3,2047+(.+4)
   1326 	bp 0x7f00+1,#1,1+(.+4)
   1327 	bp 0x7f00+195,#1,-432+(.+4)
   1328 	bp 0x7f00+129,#5,-1508+(.+4)
   1329 	bp 0x7f00+56,#3,1723+(.+4)
   1330 	.text
   1331 	.global bcc
   1332 bcc:
   1333 	bge 0+(.+2)
   1334 	bz -1+(.+2)
   1335 	bpl -128+(.+2)
   1336 	bls 127+(.+2)
   1337 	bnc 1+(.+2)
   1338 	bnz.b 48+(.+2)
   1339 	bnc -7+(.+2)
   1340 	bnz.b 74+(.+2)
   1341 	.text
   1342 	.global br
   1343 br:
   1344 	br 0+(.+2)
   1345 	br -2+(.+2)
   1346 	br -2048+(.+2)
   1347 	br 2046+(.+2)
   1348 	br 1+(.+2)
   1349 	br 1472+(.+2)
   1350 	br 1618+(.+2)
   1351 	br 978+(.+2)
   1352 	.text
   1353 	.global callrimm
   1354 callrimm:
   1355 	callr 0+(.+2)
   1356 	callr -2+(.+2)
   1357 	callr -2048+(.+2)
   1358 	callr 2046+(.+2)
   1359 	callr 1+(.+2)
   1360 	callr 1472+(.+2)
   1361 	callr 1618+(.+2)
   1362 	callr 978+(.+2)
   1363 
   1364 movgrgrsi:
   1365 	mov.b r0,(r0,extsym)
   1366 	mov.w r7,(r15,extsym-1)
   1367 	mov.w r4,(r8,extsym-2048)
   1368 	mov.b r3,(r7,extsym+2047)
   1369 	mov.w r1,(r1,extsym+1)
   1370 	mov.w r6,(r8,extsym-452)
   1371 	mov.w r4,(r11,extsym+572)
   1372 	mov.b r1,(r1,extsym-1718)
   1373 	.text
   1374 	.global movgrgriipostinc
   1375 movgrgrsipostinc:
   1376 	mov.b r0,(r0++,extsym)
   1377 	mov.w r7,(r15++,extsym-1)
   1378 	mov.w r4,(r8++,extsym-2048)
   1379 	mov.b r3,(r7++,extsym+2047)
   1380 	mov.w r1,(r1++,extsym+1)
   1381 	mov.w r6,(r0++,extsym-64)
   1382 	mov.b r7,(r15++,extsym+1060)
   1383 	mov.b r0,(r7++,extsym+847)
   1384 	.text
   1385 	.global movgrgriipredec
   1386 movgrgrsipredec:
   1387 	mov.b r0,(--r0,extsym)
   1388 	mov.w r7,(--r15,extsym-1)
   1389 	mov.w r4,(--r8,extsym-2048)
   1390 	mov.b r3,(--r7,extsym+2047)
   1391 	mov.w r1,(--r1,extsym+1)
   1392 	mov.w r0,(--r15,extsym+1780)
   1393 	mov.w r6,(--r1,extsym+1506)
   1394 	mov.w r7,(--r3,extsym-2033)
   1395 	.text
   1396 	.global movgriigr
   1397 movgrsigr:
   1398 	mov.b (r0,extsym),r0
   1399 	mov.w (r15,extsym-1),r7
   1400 	mov.w (r8,extsym-2048),r4
   1401 	mov.b (r7,extsym+2047),r3
   1402 	mov.w (r1,extsym+1),r1
   1403 	mov.w (r7,extsym+1948),r5
   1404 	mov.b (r3,extsym-844),r4
   1405 	mov.w (r15,extsym+1704),r0
   1406 	.text
   1407 	.global movgriipostincgr
   1408 movgrsipostincgr:
   1409 	mov.b (r0++,extsym),r0
   1410 	mov.w (r15++,extsym-1),r7
   1411 	mov.w (r8++,extsym-2048),r4
   1412 	mov.b (r7++,extsym+2047),r3
   1413 	mov.w (r1++,extsym+1),r1
   1414 	mov.w (r2++,extsym-176),r7
   1415 	mov.w (r8++,extsym+1389),r4
   1416 	mov.b (r3++,extsym+47),r0
   1417 	.text
   1418 	.global movgriipredecgr
   1419 movgrsipredecgr:
   1420 	mov.b (--r0,extsym),r0
   1421 	mov.w (--r15,extsym-1),r7
   1422 	mov.w (--r8,extsym-2048),r4
   1423 	mov.b (--r7,extsym+2047),r3
   1424 	mov.w (--r1,extsym+1),r1
   1425 	mov.b (--r8,extsym+1004),r4
   1426 	mov.w (--r14,extsym-1444),r2
   1427 	mov.b (--r5,extsym-927),r4
   1428