-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfpsp.asm
18548 lines (17474 loc) · 274 KB
/
fpsp.asm
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
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
AFLINE macro
dw \1
endm
****************************************************************************
SECTION fpsprs000000,CODE
ProgStart:
_fpsp_Call_Top: ORI.B #0,D0
_060_real_snan: dc.l 0
;fiX Bad code terminator
_060_real_operr: dc.l 0
_060_real_ovfl: dc.l 0
_060_real_unfl: dc.l 0
_060_real_dz: dc.l 0
_060_real_inex: dc.l 0
_060_real_fline: dc.l 0
_060_real_fpu_disabled:
dc.l 0
_060_real_trap: dc.l 0
_060_real_trace: dc.l 0
_060_real_access: dc.l 0
_060_fpsp_done: dc.l 0
dc.l 0
dc.l 0
dc.l 0
_060_imem_read: dc.l 0
_060_dmem_read: dc.l 0
_060_dmem_write: dc.l 0
_060_imem_read_word:
dc.l 0
_060_imem_read_long:
dc.l 0
_060_dmem_read_byte:
dc.l 0
_060_dmem_read_word:
dc.l 0
_060_dmem_read_long:
dc.l 0
_060_dmem_write_byte:
dc.l 0
_060_dmem_write_word:
dc.l 0
_060_dmem_write_long:
dc.l 0
dc.l 0
dc.l 0
dc.l 0
dc.l 0
dc.l 0
_fpsp_Top: BRA.L _fpsp_snan
;fiX Label expected
dc.w 0
BRA.L _fpsp_operr
;fiX Label expected
dc.w 0
BRA.L _fpsp_ovfl
;fiX Label expected
dc.w 0
BRA.L _fpsp_unfl
;fiX Label expected
dc.w 0
BRA.L _fpsp_dzero
;fiX Label expected
dc.w 0
BRA.L _fpsp_inex
;fiX Label expected
dc.w 0
BRA.L _fpsp_fline
;fiX Label expected
dc.w 0
BRA.L _fpsp_unsupp
;fiX Label expected
dc.w 0
BRA.L _fpsp_effadr
;fiX Label expected
dc.w 0
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
TRAPF
;fiX Label expected
; --------------------------------------------------------------------------
TRAPF
lbC000100: MOVE.L D0,-(SP)
MOVE.L (_060_fpsp_done,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000116: MOVE.L D0,-(SP)
MOVE.L (_060_real_ovfl,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00012C: MOVE.L D0,-(SP)
MOVE.L (_060_real_unfl,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000142: MOVE.L D0,-(SP)
MOVE.L (_060_real_inex,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000158: MOVE.L D0,-(SP)
MOVE.L (_fpsp_Call_Top,PC),D0
;fiX Data reference expected
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00016E: MOVE.L D0,-(SP)
MOVE.L (_060_real_operr,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000184: MOVE.L D0,-(SP)
MOVE.L (_060_real_snan,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00019A: MOVE.L D0,-(SP)
MOVE.L (_060_real_dz,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0001B0: MOVE.L D0,-(SP)
MOVE.L (_060_real_fline,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0001C6: MOVE.L D0,-(SP)
MOVE.L (_060_real_fpu_disabled,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0001DC: MOVE.L D0,-(SP)
MOVE.L (_060_real_trap,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0001F2: MOVE.L D0,-(SP)
MOVE.L (_060_real_trace,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000208: MOVE.L D0,-(SP)
MOVE.L (_060_real_access,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00021E: MOVE.L D0,-(SP)
MOVE.L (_060_imem_read,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000234: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_read,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00024A: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_write,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000260: MOVE.L D0,-(SP)
MOVE.L (_060_imem_read_word,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC000276: MOVE.L D0,-(SP)
MOVE.L (_060_imem_read_long,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC00028C: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_read_byte,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0002A2: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_read_word,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0002B8: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_read_long,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0002CE: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_write_byte,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0002E4: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_write_word,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbC0002FA: MOVE.L D0,-(SP)
MOVE.L (_060_dmem_write_long,PC),D0
PEA (_fpsp_Call_Top,PC,D0.L)
MOVE.L (4,SP),D0
RTD #4
lbD000310: dc.d 11354.443964752463
lbD000318: dc.d 8.9713596574902281E-13
lbB000320: dc.b $40
dc.b 0
dc.b 0
dc.b 0
dc.b $C9
dc.b 15
dc.b $DA
dc.b $A2
dc.b $21
dc.b $68
dc.b $C2
dc.b $35
dc.b 0
dc.b 0
dc.b 0
dc.b 0
lbB000330: dc.b $3F
dc.b $FF
dc.b 0
dc.b 0
dc.b $C9
dc.b 15
dc.b $DA
dc.b $A2
dc.b $21
dc.b $68
dc.b $C2
dc.b $35
dc.b 0
dc.b 0
dc.b 0
dc.b 0
lbD000340: dc.d 0.63661977236758138
; --------------------------------------------------------------------------
_fpsp_ovfl: LINK.W A6,#-$00C0
FSAVE (-$0094,A6)
MOVEM.L D0/D1/A0/A1,(-$0064,A6)
FMOVEM.L FPCR/FPSR/FPIAR,(-$00A0,A6)
FMOVEM.X FP0/FP1,(-$0024,A6)
MOVE.L (-$0098,A6),(-$00BC,A6)
MOVEA.L (-$00BC,A6),A0
ADDQ.L #4,(-$00BC,A6)
BSR.L lbC000276
MOVE.L D0,(-$00C0,A6)
BTST #5,(-$00BE,A6)
BNE.W lbC000498
LEA (-$0094,A6),A0
BSR.L lbC0008A6
LEA (-$0094,A6),A0
BSR.L lbC00C570
MOVE.B D0,(-$00B2,A6)
BTST #5,(-$00BD,A6)
BEQ.B lbC0003CA
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C0CE
LEA (-$0088,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC0003C6
BSR.L lbC00C4E0
lbC0003C6: MOVE.B D0,(-$00B1,A6)
lbC0003CA: CLR.L D0
MOVE.B (-$009D,A6),D0
MOVE.B (-$00BD,A6),D1
ANDI.W #$007F,D1
ANDI.L #$00FF01FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
LEA (-$0094,A6),A0
LEA (-$0088,A6),A1
MOVE.L (lbW00750C,PC,D1.W*4),D1
JSR (lbW00750C,PC,D1.L)
;fiX Code reference expected
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C15E
BTST #4,(-$009E,A6)
BNE.B lbC00043E
BTST #1,(-$009E,A6)
BNE.B lbC000468
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BRA.L lbC000100
**--------------------------------------------------
lbC00043E: FMOVEM.X FP1,(-$0094,A6)
MOVE.W #$E005,(-$0092,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000116
**--------------------------------------------------
lbC000468: FMOVEM.X FP1,(-$0094,A6)
MOVE.B #$C4,(11,A6)
MOVE.W #$E001,(-$0092,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000142
lbC000498: MOVE.B #0,(-$00B2,A6)
CLR.L D0
MOVE.B (-$009D,A6),D0
ANDI.L #$FFFF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
LEA (-$0094,A6),A0
BSR.L lbC00B790
BTST #4,(-$009E,A6)
BNE.W lbC00043E
BTST #1,(-$009E,A6)
BNE.W lbC000468
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BTST #7,(SP)
BEQ.L lbC000100
FMOVE.L FPIAR,(8,SP)
MOVE.W #$2024,(6,SP)
BRA.L lbC0001F2
; --------------------------------------------------------------------------
_fpsp_unfl: LINK.W A6,#-$00C0
FSAVE (-$0094,A6)
MOVEM.L D0/D1/A0/A1,(-$0064,A6)
FMOVEM.L FPCR/FPSR/FPIAR,(-$00A0,A6)
FMOVEM.X FP0/FP1,(-$0024,A6)
MOVE.L (-$0098,A6),(-$00BC,A6)
MOVEA.L (-$00BC,A6),A0
ADDQ.L #4,(-$00BC,A6)
BSR.L lbC000276
MOVE.L D0,(-$00C0,A6)
BTST #5,(-$00BE,A6)
BNE.W lbC000676
LEA (-$0094,A6),A0
BSR.L lbC0008A6
LEA (-$0094,A6),A0
BSR.L lbC00C570
MOVE.B D0,(-$00B2,A6)
BTST #5,(-$00BD,A6)
BEQ.B lbC000594
BTST #4,(-$00BD,A6)
BNE.B lbC000594
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C0CE
LEA (-$0088,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC000590
BSR.L lbC00C4E0
lbC000590: MOVE.B D0,(-$00B1,A6)
lbC000594: CLR.L D0
MOVE.B (-$009D,A6),D0
MOVE.B (-$00BD,A6),D1
ANDI.W #$007F,D1
ANDI.L #$00FF01FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
LEA (-$0094,A6),A0
LEA (-$0088,A6),A1
MOVE.L (lbW00750C,PC,D1.W*4),D1
JSR (lbW00750C,PC,D1.L)
;fiX Code reference expected
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C15E
BTST #3,(-$009E,A6)
BNE.B lbC000608
lbC0005E6: BTST #1,(-$009E,A6)
BNE.B lbC00063C
lbC0005EE: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BRA.L lbC000100
lbC000608: BTST #3,(-$009A,A6)
BEQ.W lbC0005E6
lbC000612: FMOVEM.X FP1,(-$0094,A6)
MOVE.W #$E003,(-$0092,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC00012C
lbC00063C: BTST #1,(-$009A,A6)
BEQ.W lbC0005EE
lbC000646: FMOVEM.X FP1,(-$0094,A6)
MOVE.B #$C4,(11,A6)
MOVE.W #$E001,(-$0092,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000142
lbC000676: MOVE.B #0,(-$00B2,A6)
CLR.L D0
MOVE.B (-$009D,A6),D0
ANDI.L #$FFFF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
LEA (-$0094,A6),A0
BSR.L lbC00B790
BTST #3,(-$009E,A6)
BNE.W lbC000612
BTST #1,(-$009E,A6)
BNE.W lbC000646
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BTST #7,(SP)
BEQ.L lbC000100
FMOVE.L FPIAR,(8,SP)
MOVE.W #$2024,(6,SP)
BRA.L lbC0001F2
; --------------------------------------------------------------------------
_fpsp_unsupp: LINK.W A6,#-$00C0
FSAVE (-$0094,A6)
MOVEM.L D0/D1/A0/A1,(-$0064,A6)
FMOVEM.L FPCR/FPSR/FPIAR,(-$00A0,A6)
FMOVEM.X FP0/FP1,(-$0024,A6)
BTST #5,(4,A6)
BNE.B lbC000712
MOVE.L USP,A0
MOVE.L A0,(-$0028,A6)
BRA.B lbC00071A
lbC000712: LEA ($0010,A6),A0
MOVE.L A0,(-$0028,A6)
lbC00071A: MOVE.L (-$0098,A6),(-$00BC,A6)
MOVEA.L (-$00BC,A6),A0
ADDQ.L #4,(-$00BC,A6)
BSR.L lbC000276
MOVE.L D0,(-$00C0,A6)
CLR.B (-$00B6,A6)
BTST #5,(-$00BE,A6)
BNE.W lbC000946
BFEXTU (-$00BE,A6){0:6},D0
CMPI.B #$13,D0
BEQ.W lbC000BEA
ANDI.L #$00FF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
LEA (-$0094,A6),A0
BSR.L lbC0008A6
LEA (-$0094,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC000786
BSR.L lbC00C4E0
lbC000786: MOVE.B D0,(-$00B2,A6)
BFEXTU (-$00BE,A6){6:3},D0
BTST #5,(-$00BD,A6)
BEQ.B lbC0007C0
CMPI.B #$3A,(-$00BD,A6)
BEQ.B lbC0007C0
BSR.L lbC00C0CE
LEA (-$0088,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC0007BC
BSR.L lbC00C4E0
lbC0007BC: MOVE.B D0,(-$00B1,A6)
lbC0007C0: CLR.L D0
MOVE.B (-$009D,A6),D0
BFEXTU (-$00BD,A6){1:7},D1
LEA (-$0094,A6),A0
LEA (-$0088,A6),A1
MOVE.L (lbW00750C,PC,D1.L*4),D1
JSR (lbW00750C,PC,D1.L)
;fiX Code reference expected
MOVE.B (-$009E,A6),D0
BNE.B lbC00081E
lbC0007EA: MOVE.B (-$00BD,A6),D0
ANDI.B #$38,D0
CMPI.B #$38,D0
BEQ.B lbC000804
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C15E
lbC000804: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BRA.L lbC000100
lbC00081E: AND.B (-$009A,A6),D0
BFFFO D0{$18:8},D0
BNE.B lbC00083C
BTST #4,(-$009A,A6)
BEQ.B lbC0007EA
BTST #1,(-$009E,A6)
BEQ.B lbC0007EA
BRA.W lbC0008A0
lbC00083C: SUBI.L #$00000018,D0
CMPI.B #6,D0
BNE.B lbC00085C
BTST #3,(-$009A,A6)
BNE.W lbC00089A
BTST #4,(-$009A,A6)
BNE.W lbC0008A0
lbC00085C: MOVE.L D0,-(SP)
BSR.L lbC001040
MOVE.L (SP)+,D0
MOVE.W (lbW00088A,PC,D0.W*2),(-$0092,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000100
lbW00088A: dc.w $E000
dc.w $E006
dc.w $E004
dc.w $E005
dc.w $E003
dc.w $E002
dc.w $E001
dc.w $E001
lbC00089A: MOVE.W #4,D0
BRA.B lbC00085C
lbC0008A0: MOVE.W #3,D0
BRA.B lbC00085C
lbC0008A6: BFEXTU (-$00BE,A6){0:6},D0
CMPI.B #$11,D0
BEQ.B lbC0008BA
CMPI.B #$15,D0
BEQ.B lbC000908
RTS
lbC0008BA: MOVE.W (0,A0),D0
ANDI.W #$7FFF,D0
CMPI.W #$3F80,D0
BEQ.B lbC0008D0
CMPI.W #$407F,D0
BEQ.B lbC0008FA
RTS
lbC0008D0: ANDI.L #$7FFFFFFF,(4,A0)
BEQ.B lbC0008F2
BSR.L lbC00C498
NEG.W D0
ADDI.W #$3F81,D0
ANDI.W #$8000,(0,A0)
OR.W D0,(0,A0)
RTS
lbC0008F2: ANDI.W #$8000,(0,A0)
RTS
lbC0008FA: ANDI.B #$7F,(4,A0)
ORI.W #$7FFF,(0,A0)
RTS
lbC000908: MOVE.W (0,A0),D0
ANDI.W #$7FFF,D0
CMPI.W #$3C00,D0
BEQ.B lbC00091E
CMPI.W #$43FF,D0
BEQ.B lbC0008FA
RTS
lbC00091E: ANDI.L #$7FFFFFFF,(4,A0)
BNE.B lbC00092E
TST.L (8,A0)
BEQ.B lbC0008F2
lbC00092E: BSR.L lbC00C498
NEG.W D0
ADDI.W #$3C01,D0
ANDI.W #$8000,(0,A0)
OR.W D0,(0,A0)
RTS
lbC000946: BFEXTU (-$00BE,A6){3:3},D0
CMPI.B #3,D0
BEQ.W lbC000DF4
CMPI.B #7,D0
BEQ.W lbC000DF4
ANDI.L #$FFFF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
MOVE.W (-$0094,A6),D0
ANDI.W #$7FFF,D0
BEQ.B lbC00098E
LEA (-$0094,A6),A0
BSR.L lbC00C4E0
MOVE.B D0,(-$00B2,A6)
BRA.B lbC000994
lbC00098E: MOVE.B #4,(-$00B2,A6)
lbC000994: CLR.L D0
MOVE.B (-$009D,A6),D0
LEA (-$0094,A6),A0
MOVE.L (A6),(-$002C,A6)
BSR.L lbC00B790
MOVE.B (-$009E,A6),D0
BNE.W lbC000A34
lbC0009B0: MOVE.L (-$002C,A6),(A6)
BTST #5,(4,A6)
BNE.B lbC0009E2
MOVEA.L (-$0028,A6),A0
MOVE.L A0,USP
lbC0009C2: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BTST #7,(SP)
BNE.B lbC000A56
BRA.L lbC000100
lbC0009E2: CMPI.B #8,(-$00B6,A6)
BNE.B lbC0009C2
FMOVEM.X FP0,(-$0094,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVEA.L (A6),A6
MOVE.L ($00C4,SP),($00B8,SP)
MOVE.L ($00C8,SP),($00BC,SP)
MOVE.L ($002C,SP),($00C4,SP)
MOVE.L ($0030,SP),($00C8,SP)
MOVE.L ($0034,SP),($00CC,SP)
ADDA.L #$000000B8,SP
BTST #7,(SP)
BNE.B lbC000A56
BRA.L lbC000100
lbC000A34: AND.B (-$009A,A6),D0
BFFFO D0{$18:8},D0
BNE.B lbC000A68
BTST #4,(-$009A,A6)
BEQ.W lbC0009B0
BTST #1,(-$009E,A6)
BEQ.W lbC0009B0
BRA.W lbC000BBA
lbC000A56: MOVE.W #$2024,(6,SP)
FMOVE.L FPIAR,(8,SP)
BRA.L lbC0001F2
lbC000A68: SUBI.L #$00000018,D0
MOVE.W (lbW000A7A,PC,D0.W*2),D0
JMP (lbW000A7A,PC,D0.W)
;fiX Label expected
;fiX Code reference expected
ILLEGAL
;fiX Label expected
dc.w 8
;fiX Bad code terminator
;fiX Illegal instruction
lbW000A7A: dc.w 0
dc.w 0
dc.w $003A
dc.w $0064
dc.w $0094
dc.w 0
dc.w $0140
dc.w 0
lbC000A8A: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30D8,(10,A6)
MOVE.W #$E006,(-$0092,A6)
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000184
lbC000AB4: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30D0,(10,A6)
MOVE.W #$E004,(-$0092,A6)
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC00016E
;fiX Label expected
FMOVEM.X FP1,(-$0094,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30D4,(10,A6)
MOVE.W #$E005,(-$0092,A6)
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000116
;fiX Label expected
MOVE.L (-$002C,A6),(A6)
BTST #5,(4,A6)
BNE.W lbC000B52
MOVEA.L (-$0028,A6),A0
MOVE.L A0,USP
lbC000B22: FMOVEM.X FP1,(-$0094,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30CC,(10,A6)
MOVE.W #$E003,(-$0092,A6)
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC00012C
lbC000B52: CMPI.B #8,(-$00B6,A6)
BNE.B lbC000B22
FMOVEM.X FP0,(-$0094,A6)
FMOVEM.X FP1,(-$0088,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30CC,(10,A6)
MOVE.W #$E003,(-$0086,A6)
FRESTORE (-$0088,A6)
MOVEA.L (A6),A6
MOVE.L ($00C4,SP),($00B8,SP)
MOVE.L ($00C8,SP),($00BC,SP)
MOVE.L ($00CC,SP),($00C0,SP)
MOVE.L ($002C,SP),($00C4,SP)
MOVE.L ($0030,SP),($00C8,SP)
MOVE.L ($0034,SP),($00CC,SP)
ADDA.L #$000000B8,SP
BRA.L lbC00012C
lbC000BBA: FMOVEM.X FP1,(-$0094,A6)
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
MOVE.W #$30C4,(10,A6)
MOVE.W #$E001,(-$0092,A6)
FRESTORE (-$0094,A6)
UNLK A6
BRA.L lbC000142
lbC000BEA: ANDI.L #$00FF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
BSR.L lbC00C9BE
LEA (-$0094,A6),A0
BSR.L lbC00C570
MOVE.B D0,(-$00B2,A6)
BFEXTU (-$00BE,A6){6:3},D0
BTST #5,(-$00BD,A6)
BEQ.B lbC000C4C
CMPI.B #$3A,(-$00BD,A6)
BEQ.B lbC000C4C
BSR.L lbC00C0CE
LEA (-$0088,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC000C48
BSR.L lbC00C4E0
lbC000C48: MOVE.B D0,(-$00B1,A6)
lbC000C4C: CLR.L D0
MOVE.B (-$009D,A6),D0
BFEXTU (-$00BD,A6){1:7},D1
LEA (-$0094,A6),A0
LEA (-$0088,A6),A1
MOVE.L (lbW00750C,PC,D1.L*4),D1
JSR (lbW00750C,PC,D1.L)
;fiX Code reference expected
MOVE.B (-$009E,A6),D0
BNE.W lbC000D00
lbC000C78: MOVE.B (-$00BD,A6),D0
ANDI.B #$38,D0
CMPI.B #$38,D0
BEQ.B lbC000C92
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C15E
lbC000C92: BTST #5,(4,A6)
BNE.W lbC000CC4
MOVEA.L (-$0028,A6),A0
MOVE.L A0,USP
lbC000CA2: FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
BTST #7,(SP)
BNE.W lbC000DE2
BRA.L lbC000100
lbC000CC4: BTST #2,(-$00B6,A6)
BEQ.B lbC000CA2
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
UNLK A6
MOVE.L (4,SP),($0010,SP)
MOVE.L (0,SP),(12,SP)
ADDA.L #12,SP
BTST #7,(SP)
BNE.W lbC000DE2
BRA.L lbC000100
lbC000D00: AND.B (-$009A,A6),D0
BFFFO D0{$18:8},D0
BNE.B lbC000D22
BTST #4,(-$009A,A6)
BEQ.W lbC000C78
BTST #1,(-$009E,A6)
BEQ.W lbC000C78
BRA.W lbC000D8E
lbC000D22: SUBI.L #$00000018,D0
CMPI.B #6,D0
BLT.B lbC000D42
BTST #3,(-$009A,A6)
BNE.W lbC000D96
BTST #4,(-$009A,A6)
BNE.W lbC000D8E
lbC000D42: BTST #5,(4,A6)
BNE.W lbC000D9E
MOVEA.L (-$0028,A6),A0
MOVE.L A0,USP
lbC000D52: MOVE.W (lbC000D7E,PC,D0.W*2),(-$0092,A6)
;fiX Data reference expected
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
BTST #7,(SP)
BNE.W lbC000DE2
BRA.L lbC000100
lbC000D7E: ASR.B #8,D0
ASR.B #8,D6
ASR.B #8,D4
ASR.B #8,D5
ASR.B #8,D3
ASR.B #8,D2
ASR.B #8,D1
ASR.B #8,D1
lbC000D8E: MOVE.W #3,D0
BRA.W lbC000D42
lbC000D96: MOVE.W #4,D0
BRA.W lbC000D42
lbC000D9E: BTST #2,(-$00B6,A6)
BEQ.B lbC000D52
MOVE.W (lbC000D7E,PC,D0.W*2),(-$0092,A6)
;fiX Data reference expected
FMOVEM.X (-$0024,A6),FP0/FP1
FMOVEM.L (-$00A0,A6),FPCR/FPSR/FPIAR
MOVEM.L (-$0064,A6),D0/D1/A0/A1
FRESTORE (-$0094,A6)
UNLK A6
MOVE.L (4,SP),($0010,SP)
MOVE.L (0,SP),(12,SP)
ADDA.L #12,SP
BTST #7,(SP)
BNE.B lbC000DE2
BRA.L lbC000100
lbC000DE2: MOVE.W #$2024,(6,SP)
FMOVE.L FPIAR,(8,SP)
BRA.L lbC0001F2
lbC000DF4: ANDI.L #$FFFF00FF,(-$009C,A6)
FMOVE.L #0,FPCR
FMOVE.L #0,FPSR
BFEXTU (-$00BE,A6){6:3},D0
BSR.L lbC00C03E
LEA (-$0094,A6),A0
BSR.L lbC00C570
CMPI.B #6,D0
BNE.B lbC000E2E
BSR.L lbC00C4E0
lbC000E2E: MOVE.B D0,(-$00B2,A6)
CLR.L D0
MOVE.B (-$009D,A6),D0
LEA (-$0094,A6),A0
MOVE.L (A6),(-$002C,A6)