-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiplromxv.s
36575 lines (34197 loc) · 668 KB
/
iplromxv.s
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
;=============================================
; Filename iplrom/iplromxv.dat
; Time Stamp Sat Apr 15 04:04:00 2000
;
; Base address fe0000
; Exec address ff0010
; Text size 020000 byte(s)
; Data size 000000 byte(s)
; Bss size 000000 byte(s)
; 4751 Labels
; Code Generate date Mon Nov 02 00:01:15 2020
; Commandline c:\Users\Mihai\Code\dis\src\dis.exe -b2 -h -i -m68030 -m68882 -zfe0000,ff0010 -q1 -B -M -w16 --exclude-fefunc-mac -Tiplrom/iplromxv.tab -giplrom/iplromxv.lab --overwrite iplrom/iplromxv.dat iplrom/iplromxv.s
; DIS version 3.16
;=============================================
.include inc/doscall.mac
.include inc/iocscall.mac
.cpu 68030
.text
Lfe0000:
move.l a0,-(a7)
lea.l ($00001000).l,a0
move.w #$01a4,d0
Lfe000c:
clr.w (a0)+
dbra.w d0,Lfe000c
movea.l (a7)+,a0
lea.l ($00001000).l,a6
move.l d0,($013e,a6)
andi.w #$f8ff,sr
move.w (Lfe0058),d0
andi.l #$0000000f,d0
asl.l #2,d0
movea.l d0,a0
move.l #Lfe2d3e,($0080,a0)
move.w sr,($0042,a6)
move.l a7,($0136,a6)
move.l #Lfe2d3e,($0046,a6)
move.l #Lfe3c64,($0142,a6)
bra.s Lfe006e
Lfe0054:
bra.w Lfe0146
Lfe0058:
.dc.w $4e48
Lfe005a:
tst.w ($00001754).l
bne.w Lfe2e1e
move.b #$0c,($00e8e007)
rte
Lfe006e:
lea.l ($00001000).l,a6
bsr.w Lfe3bc2
bsr.w Lfe40fe
move.l #Lfe005a,($0000007c).l
move.l #$ffffffff,($0120,a6)
clr.l ($0126,a6)
move.l ($013e,a6),($0092,a6)
move.l #$00001548,($009a,a6)
move.l #$00000000,($009e,a6)
move.w #$0001,($004a,a6)
move.w #$ffff,($01e0,a6)
clr.w ($00001754).l
clr.w ($00001756).l
bsr.w Lfe043e
move.w #$ffff,($00001754).l
lea.l (Lfe00d6,pc),a0
bsr.w Lfe4bc8
rts
Lfe00d6:
.dc.b $0d,$0d,$0a
.dc.b 'ROM debugger Ver 1.0',$0d,$0a
.dc.b 'Copyright Hudson soft 1987',$0d,$0a,$00
Lfe010c:
.dc.b 'program terminated normally',$0d,$0a,$00
Lfe012a:
lea.l ($00001748).l,a7
lea.l ($00001000).l,a6
bsr.w Lfe2c88
bsr.s Lfe016c
movea.l #Lfe010c,a0
bsr.w Lfe4bc8
Lfe0146:
clr.w ($00001756).l
clr.w ($00001754).l
movea.l #$00001748,a7
movea.l #$00001000,a6
andi.w #$f8ff,sr
bsr.w Lfe4ada
bsr.w Lfe01f2
bra.s Lfe0146
Lfe016c:
rts
Lfe016e:
.dc.b $00,$41,$00,$fe,$16,$b2,$00,$44,$00,$fe,$47,$5a,$00,$46,$00,$fe
.dc.b $04,$40,$00,$47,$00,$fe,$28,$9c,$00,$48,$00,$fe,$36,$8a,$00,$4c
.dc.b $00,$fe,$06,$0e,$00,$42,$00,$fe,$3f,$1e,$00,$4d,$00,$fe,$04,$cc
.dc.b $00,$52,$00,$fe,$2e,$fc,$00,$57,$00,$fe,$2f,$24,$00,$45,$00,$fe
.dc.b $48,$ee,$00,$54,$00,$fe,$29,$96,$00,$55,$00,$fe,$29,$9c,$00,$58
.dc.b $00,$fe,$2f,$54,$00,$3f,$00,$fe,$03,$da,$00,$5a,$00,$fe,$03,$46
.dc.b $00,$56,$00,$fe,$04,$3e,$00,$59,$00,$fe,$05,$be,$00,$5c,$00,$fe
.dc.b $06,$06,$00,$53,$00,$fe,$34,$18,$00,$4f,$00,$fe,$03,$3e,$ff,$00
.dc.b $ff,$ff,$ff,$ff
Lfe01f2:
lea.l ($0206,a6),a5
Lfe01f6:
bsr.w Lfe4cc2
tst.b d0
beq.s Lfe022c
cmpi.b #$3a,d0 ;':'
bne.s Lfe0208
addq.l #1,a5
bra.s Lfe01f6
Lfe0208:
move.l a5,($003e,a6)
addq.l #1,a5
bsr.s Lfe027c
bcs.s Lfe022e
bsr.w Lfe029c
move.l a5,($003e,a6)
bsr.w Lfe4cc2
tst.b d0
beq.s Lfe022c
cmpi.b #$3a,d0 ;':'
bne.s Lfe022e
addq.l #1,a5
bra.s Lfe01f6
Lfe022c:
rts
Lfe022e:
movea.l #Lfe0256,a0
bsr.w Lfe4bc8
movea.l ($003e,a6),a0
bsr.w Lfe4bc8
bsr.w Lfe4bb8
bra.w Lfe0146
Lfe0248:
lea.l (Lfe026a),a0
bsr.w Lfe4bc8
bra.w Lfe0146
Lfe0256:
.dc.b 'Command error at ',$0d,$0a,$00
Lfe026a:
.dc.b 'Bad parameter.',$0d,$0a,$00,$00
Lfe027c:
bsr.w Lfe4de2
movea.l #Lfe016e,a0
Lfe0286:
tst.b (a0)+
beq.s Lfe0290
ori.b #$01,ccr
rts
Lfe0290:
cmp.b (a0)+,d0
beq.s Lfe0298
addq.l #4,a0
bra.s Lfe0286
Lfe0298:
movea.l (a0),a4
rts
Lfe029c:
jmp (a4)
Lfe029e:
bsr.w Lfe4cc2
clr.w ($0000.w,a6)
pea.l ($0002,a6)
Lfe02aa:
move.b (a5),d0
cmp.b #$2c,d0 ;','
beq.s Lfe02d4
cmpi.w #$0001,($0000.w,a6)
bne.s Lfe02da
bsr.w Lfe4de2
cmp.b #$4c,d0 ;'L'
bne.s Lfe02da
addq.l #1,a5
bsr.w Lfe4238
bcs.s Lfe0306
add.l ($0002,a6),d6
subq.l #1,d6
bra.s Lfe02e0
Lfe02d4:
movea.l (a7),a0
move.l (a0),d6
bra.s Lfe02e0
Lfe02da:
bsr.w Lfe4238
bcs.s Lfe0306
Lfe02e0:
addq.w #1,($0000.w,a6)
movea.l (a7),a0
move.l d6,(a0)+
move.l a0,(a7)
cmpi.w #$0008,($0000.w,a6)
bcc.s Lfe0306
cmpi.b #$2c,d0 ;','
beq.s Lfe02fe
cmp.b #$20,d0 ;' '
bne.s Lfe0306
Lfe02fe:
addq.l #1,a5
bsr.w Lfe4cc2
bra.s Lfe02aa
Lfe0306:
bsr.w Lfe4cc2
tst.b d0
beq.s Lfe0316
cmp.b #$3a,d0 ;':'
bne.w Lfe0248
Lfe0316:
addq.l #4,a7
rts
Lfe031a:
lea.l ($000017d8).l,a0
movea.l a0,a1
clr.b (a0)+
bsr.w Lfe4cc2
tst.b d0
beq.s Lfe0338
Lfe032c:
addq.b #1,(a1)
move.b (a5)+,d0
move.b d0,(a0)+
bne.s Lfe032c
subq.l #1,a5
subq.b #1,(a1)
Lfe0338:
clr.b (a0)
rts
Lfe033c:
rts
Lfe033e:
eori.w #$ffff,($01e2,a6)
rts
Lfe0346:
move.b (a5),d0
beq.s Lfe035e
cmp.b #$3a,d0 ;':'
beq.s Lfe035e
cmp.b #$30,d0 ;'0'
bcs.s Lfe035c
cmp.b #$39,d0 ;'9'
bls.s Lfe03a4
Lfe035c:
rts
Lfe035e:
lea.l ($01b8,a6),a1
moveq.l #$30,d2 ;'0'
Lfe0364:
moveq.l #$5a,d0 ;'Z'
bsr.w Lfe4b72
move.b d2,d0
bsr.w Lfe4b72
moveq.l #$3a,d0 ;':'
bsr.w Lfe4b72
move.l (a1)+,d1
bsr.w Lfe4c22
move.l d1,d0
bsr.w Lfe3f1a
tst.l d0
bmi.s Lfe0396
movea.l d0,a0
bsr.w Lfe4bc0
moveq.l #$2e,d0 ;'.'
bsr.w Lfe4b72
bsr.w Lfe4bc8
Lfe0396:
bsr.w Lfe4bb8
addq.b #1,d2
cmp.b #$39,d2 ;'9'
bls.s Lfe0364
rts
Lfe03a4:
addq.l #1,a5
cmpi.b #$3d,(a5) ;'='
bne.w Lfe022e
addq.l #1,a5
bsr.w Lfe4cc2
tst.w d0
beq.w Lfe022e
clr.l d2
move.b (-$0002,a5),d2
sub.w #$0030,d2
lsl.l #2,d2
lea.l ($01b8,a6),a1
lea.l (a1,d2.w),a1
bsr.w Lfe4238
bcs.w Lfe0248
move.l d6,(a1)
rts
Lfe03da:
move.w #$0002,($016e,a6)
bsr.w Lfe4cc2
cmpi.b #$3f,d0 ;'?'
bne.s Lfe03f2
move.w #$0001,($016e,a6)
bra.s Lfe0400
Lfe03f2:
bsr.w Lfe4de2
cmpi.b #$50,d0 ;'P'
bne.s Lfe0402
clr.w ($016e,a6)
Lfe0400:
addq.l #1,a5
Lfe0402:
tst.b (a5)
beq.w Lfe0248
bsr.w Lfe4238
cmpi.w #$0001,($016e,a6)
bhi.s Lfe0428
beq.s Lfe0420
move.w d6,d0
bsr.w Lfe4b72
bra.w Lfe4bb8
Lfe0420:
bsr.w Lfe4bdc
bra.w Lfe4bb8
Lfe0428:
move.l d6,d1
bsr.w Lfe4c22
bra.w Lfe4bb8
Lfe0432:
lea.l (Lfe043a,pc),a0
bra.w Lfe4bc8
Lfe043a:
.dc.b '?',$0d,$0a,$00
Lfe043e:
rts
Lfe0440:
move.w #$0001,($016e,a6)
bsr.w Lfe4cc2
bsr.w Lfe4de2
cmpi.b #$4c,d0 ;'L'
bne.s Lfe045c
move.w #$0002,($016e,a6)
bra.s Lfe046c
Lfe045c:
cmpi.b #$57,d0 ;'W'
beq.s Lfe046c
cmpi.b #$53,d0 ;'S'
bne.s Lfe046e
clr.w ($016e,a6)
Lfe046c:
addq.l #1,a5
Lfe046e:
move.l ($0096,a6),($0002,a6)
bsr.w Lfe029e
cmpi.w #$0003,($0000.w,a6)
bne.w Lfe022e
move.l ($0006,a6),d7
cmp.l ($0002,a6),d7
bls.w Lfe022e
move.l ($0002,a6),d6
tst.w ($016e,a6)
beq.s Lfe04a4
btst.l #$00,d6
bne.w Lfe022e
bclr.l #$00,d7
Lfe04a4:
move.l ($000a,a6),d5
movea.l d6,a0
cmpi.w #$0001,($016e,a6)
bhi.s Lfe04c4
beq.s Lfe04bc
Lfe04b4:
move.b d5,(a0)+
cmpa.l d7,a0
bls.s Lfe04b4
rts
Lfe04bc:
move.w d5,(a0)+
cmpa.l d7,a0
bls.s Lfe04bc
rts
Lfe04c4:
move.l d5,(a0)+
cmpa.l d7,a0
bls.s Lfe04c4
rts
Lfe04cc:
move.w #$0001,($016e,a6)
bsr.w Lfe4cc2
bsr.w Lfe4de2
cmpi.b #$4c,d0 ;'L'
bne.s Lfe04e8
move.w #$0002,($016e,a6)
bra.s Lfe04f8
Lfe04e8:
cmpi.b #$57,d0 ;'W'
beq.s Lfe04f8
cmpi.b #$53,d0 ;'S'
bne.s Lfe04fa
clr.w ($016e,a6)
Lfe04f8:
addq.l #1,a5
Lfe04fa:
move.l ($0096,a6),($0002,a6)
bsr.w Lfe029e
cmpi.w #$0003,($0000.w,a6)
bne.w Lfe0248
move.l ($0006,a6),d7
cmp.l ($0002,a6),d7
bls.w Lfe0248
move.l ($0002,a6),d6
move.l ($000a,a6),d5
tst.w ($016e,a6)
beq.s Lfe0540
btst.l #$00,d7
beq.w Lfe0248
btst.l #$00,d6
bne.w Lfe0248
btst.l #$00,d5
bne.w Lfe0248
Lfe0540:
move.l d7,d0
sub.l d6,d0
cmp.l d6,d5
bcc.s Lfe057e
movea.l d6,a0
movea.l d5,a1
cmpi.w #$0001,($016e,a6)
bcc.s Lfe0566
swap.w d0
Lfe0556:
swap.w d0
Lfe0558:
move.b (a0)+,(a1)+
dbra.w d0,Lfe0558
swap.w d0
dbra.w d0,Lfe0556
rts
Lfe0566:
addq.l #1,d0
lsr.l #1,d0
subq.l #1,d0
swap.w d0
Lfe056e:
swap.w d0
Lfe0570:
move.w (a0)+,(a1)+
dbra.w d0,Lfe0570
swap.w d0
dbra.w d0,Lfe056e
rts
Lfe057e:
movea.l d7,a0
movea.l d5,a1
adda.l d0,a1
cmpi.w #$0001,($016e,a6)
bcc.s Lfe05a2
addq.l #1,a0
addq.l #1,a1
swap.w d0
Lfe0592:
swap.w d0
Lfe0594:
move.b -(a0),-(a1)
dbra.w d0,Lfe0594
swap.w d0
dbra.w d0,Lfe0592
rts
Lfe05a2:
addq.l #1,a0
addq.l #1,a1
addq.l #1,d0
lsr.l #1,d0
subq.l #1,d0
swap.w d0
Lfe05ae:
swap.w d0
Lfe05b0:
move.w -(a0),-(a1)
dbra.w d0,Lfe05b0
swap.w d0
dbra.w d0,Lfe05ae
rts
Lfe05be:
cmpi.b #$2f,(a5) ;'/'
bne.w Lfe022e
move.b ($0001,a5),d0
bsr.w Lfe4de2
cmp.b #$4e,d0 ;'N'
bne.w Lfe022e
addq.l #2,a5
bsr.w Lfe4bb8
movea.l #Lfe05fe,a0
bsr.w Lfe4bc8
bsr.w Lfe4bd2
bsr.w Lfe4de2
cmpi.b #$4e,d0 ;'N'
bne.w Lfe4bb8
bsr.w Lfe4bb8
bra.w Lfe0146
Lfe05fe:
.dc.b 'Y/N ? ',$00,$00
Lfe0606:
lea.l ($0206,a6),a5
rts
Lfe060c:
rts
Lfe060e:
cmpi.b #$2d,(a5) ;'-'
bne.s Lfe063a
addq.l #1,a5
move.l ($0032,a6),($0002,a6)
bsr.w Lfe029e
bsr.w Lfe4cc2
tst.w ($0000.w,a6)
beq.s Lfe065a
move.l ($0002,a6),d7
neg.l d7
add.l ($0032,a6),d7
move.l d7,($0002,a6)
bra.s Lfe0662
Lfe063a:
move.l ($0032,a6),($0002,a6)
bsr.w Lfe029e
bsr.w Lfe4cc2
tst.w ($0000.w,a6)
bne.s Lfe0662
tst.b d0
beq.s Lfe065a
cmpi.b #$3a,d0 ;':'
bne.w Lfe022e
Lfe065a:
move.l ($0032,a6),($0002,a6)
bra.s Lfe0678
Lfe0662:
cmpi.w #$0001,($0000.w,a6)
beq.s Lfe0678
move.l ($0006,a6),d7
cmp.l ($0002,a6),d7
bcs.w Lfe022e
bra.s Lfe06b2
Lfe0678:
move.w #$0008,($001e,a6)
move.l ($0002,a6),d0
btst.l #$00,d0
bne.w Lfe022e
move.l a5,($003e,a6)
move.l ($0002,a6),($0032,a6)
move.l ($0032,a6),($003a,a6)
movea.l ($0032,a6),a5
Lfe069e:
bsr.w Lfe0724
move.l a5,($0032,a6)
subq.w #1,($001e,a6)
bne.s Lfe069e
movea.l ($003e,a6),a5
rts
Lfe06b2:
move.l ($0002,a6),d0
btst.l #$00,d0
bne.w Lfe022e
cmp.l ($0006,a6),d0
bhi.w Lfe022e
move.l a5,($003e,a6)
movea.l d0,a5
move.l ($0032,a6),($003a,a6)
move.l d0,($0032,a6)
move.l ($0006,a6),($001e,a6)
Lfe06dc:
bsr.s Lfe0724
move.l a5,($0032,a6)
cmpa.l ($001e,a6),a5
bls.s Lfe06dc
movea.l ($003e,a6),a5
rts
Lfe06ee:
move.l d1,d0
bsr.w Lfe3f1a
tst.l d0
bmi.s Lfe0704
movea.l d0,a0
move.b #$2e,(a3)+ ;'.'
Lfe06fe:
move.b (a0)+,(a3)+
bne.s Lfe06fe
subq.l #1,a3
Lfe0704:
rts
Lfe0706:
move.l d1,d0
bsr.w Lfe3f1a
tst.l d0
bmi.s Lfe0722
movea.l d0,a0
bsr.w Lfe4bc8
move.b #$3a,d0 ;':'
bsr.w Lfe4b72
bsr.w Lfe4bb8
Lfe0722:
rts
Lfe0724:
move.l a5,d1
bsr.s Lfe0706
bsr.w Lfe4bc4
bsr.w Lfe4bc4
bsr.w Lfe4c22
bsr.w Lfe4bc0
bsr.s Lfe0740
bsr.w Lfe4bb8
rts
Lfe0740:
move.l a5,-(a7)
move.l a7,($013a,a6)
clr.w ($01fe,a6)
lea.l ($029e,a6),a3
move.w (a5)+,d7
move.w d7,d4
andi.w #$f000,d4
lsr.w #6,d4
lsr.w #4,d4
movea.l #Lfe0772,a4
movea.l (a4,d4.w),a1
jsr (a1)
lea.l ($029e,a6),a0
bsr.w Lfe4bc8
Lfe076e:
addq.l #4,a7
rts
Lfe0772:
.dc.b $00,$fe,$0c,$8c,$00,$fe,$0d,$be,$00,$fe,$0d,$f4,$00,$fe,$0e,$2c
.dc.b $00,$fe,$0e,$30,$00,$fe,$11,$1e,$00,$fe,$11,$aa,$00,$fe,$12,$12
.dc.b $00,$fe,$12,$42,$00,$fe,$12,$f8,$00,$fe,$13,$9e,$00,$fe,$13,$b8
.dc.b $00,$fe,$14,$36,$00,$fe,$14,$b6,$00,$fe,$14,$bc,$00,$fe,$15,$3e
Lfe07b2:
movea.l #Lfe07d2,a0
bsr.w Lfe4bc8
movea.l ($013a,a6),a7
movea.l (a7),a5
move.w (a5)+,d1
move.b #$24,d0 ;'$'
bsr.w Lfe4b72
bsr.w Lfe4c28
bra.s Lfe076e
Lfe07d2:
.dc.b ' undefined instruction ',$00
Lfe07ea:
move.w d7,d2
andi.w #$0038,d2
lsr.w #3,d2
move.w d7,d3
andi.w #$0007,d3
cmpi.w #$0007,d2
bne.s Lfe0806
cmpi.w #$0004,d3
bhi.s Lfe07b2
add.w d3,d2
Lfe0806:
rts
Lfe0808:
move.w d7,d3
andi.w #$01c0,d3
lsr.w #6,d3
move.w d7,d2
andi.w #$0e00,d2
lsr.w #6,d2
lsr.w #3,d2
rts
Lfe081c:
bsr.s Lfe0808
cmpi.w #$0007,d3
bne.s Lfe0826
add.w d2,d3
Lfe0826:
rts
Lfe0828:
bsr.s Lfe07ea
cmpi.w #$0002,d2
bcs.s Lfe07b2
beq.s Lfe0842
cmpi.w #$0005,d2
bcs.w Lfe07b2
cmpi.w #$000b,d2
bcc.w Lfe07b2
Lfe0842:
rts
Lfe0844:
bsr.s Lfe07ea
cmpi.w #$0001,d2
beq.w Lfe07b2
cmpi.w #$000b,d2
bhi.w Lfe07b2
rts
Lfe0858:
bsr.s Lfe07ea
cmpi.w #$000b,d2
bhi.w Lfe07b2
cmpi.w #$0002,d2
bcs.w Lfe07b2
rts
Lfe086c:
bsr.w Lfe07ea
cmpi.w #$0009,d2
bcc.w Lfe07b2
rts
Lfe087a:
bsr.s Lfe086c
cmpi.w #$0001,d2
beq.w Lfe07b2
rts
Lfe0886:
bsr.s Lfe086c
bra.s Lfe0858
Lfe088a:
movem.w d5-d6,-(a7)
movea.l #Lfe1544,a0
Lfe0894:
tst.b (a0)+
bmi.s Lfe08ce
bne.s Lfe0894
dbra.w d6,Lfe0894
Lfe089e:
move.b (a0)+,(a3)+
bne.s Lfe089e
tst.w d5
beq.s Lfe08ca
move.b #$2e,(-$0001,a3) ;'.'
subq.w #2,d5
beq.s Lfe08b8
bcs.s Lfe08be
move.b #$6c,(a3)+ ;'l'
bra.s Lfe08c2
Lfe08b8:
move.b #$77,(a3)+ ;'w'
bra.s Lfe08c2
Lfe08be:
move.b #$62,(a3)+ ;'b'
Lfe08c2:
clr.b (a3)
Lfe08c4:
movem.w (a7)+,d5-d6
rts
Lfe08ca:
subq.l #1,a3
bra.s Lfe08c4
Lfe08ce:
movea.l #Lfe08da,a0
bsr.w Lfe4bc8
bra.s Lfe08c2
Lfe08da:
.dc.b 'fatal error',$0d,$0a,$00
Lfe08e8:
move.b #$09,(a3)+
bsr.s Lfe08fc
clr.b (a3)
rts
Lfe08f2:
move.b #$2c,(a3)+ ;','
bsr.s Lfe08fc
clr.b (a3)
rts
Lfe08fc:
asl.w #2,d2
movea.l #Lfe090a,a0
movea.l (a0,d2.w),a1
jmp (a1)
Lfe090a:
.dc.b $00,$fe,$09,$3e,$00,$fe,$09,$4a,$00,$fe,$09,$50,$00,$fe,$09,$64
.dc.b $00,$fe,$09,$6c,$00,$fe,$09,$80,$00,$fe,$09,$ac,$00,$fe,$0a,$26
.dc.b $00,$fe,$0a,$4c,$00,$fe,$0a,$66,$00,$fe,$0a,$8c,$00,$fe,$0a,$ec
.dc.b $00,$fe,$0b,$26,$16,$fc,$00,$44
Lfe0942:
addi.b #$30,d3 ;'0'
move.b d3,(a3)+
rts
Lfe094a:
move.b #$41,(a3)+ ;'A'
bra.s Lfe0942
Lfe0950:
bsr.w Lfe0b5c
bsr.w Lfe0bb2
Lfe0958:
move.b #$28,(a3)+ ;'('
bsr.s Lfe094a
move.b #$29,(a3)+ ;')'
rts
Lfe0964:
bsr.s Lfe0950
move.b #$2b,(a3)+ ;'+'
rts
Lfe096c:
bsr.w Lfe0b5c
bsr.w Lfe0b7c
sub.l d1,d0
bsr.w Lfe0bb2
move.b #$2d,(a3)+ ;'-'
bra.s Lfe0958
Lfe0980:
bsr.w Lfe0b5c
move.w (a5),d1
ext.l d1
add.l d1,d0
bsr.w Lfe0bb2
move.b #$24,(a3)+ ;'$'
move.w (a5),d1
bsr.w Lfe4c62
move.w (a5)+,d1
ext.l d1
bsr.w Lfe06ee
move.b #$28,(a3)+ ;'('
bsr.s Lfe094a
move.b #$29,(a3)+ ;')'
rts
Lfe09ac:
bsr.w Lfe0b5c
bsr.w Lfe0b8c
add.l d1,d0
bsr.w Lfe0bb2
move.w d3,-(a7)
move.w (a5)+,d1
move.w d1,d0
andi.w #$0700,d0
beq.s Lfe09cc
move.w (a7)+,d3
bra.w Lfe07b2
Lfe09cc:
move.w d1,d3
bclr.l #$0f,d3
lsr.w #6,d3
lsr.w #6,d3
clr.w d2
btst.l #$0f,d1
beq.s Lfe09e0
addq.w #1,d2
Lfe09e0:
movem.w d2-d3,-(a7)
move.b #$24,(a3)+ ;'$'
move.l d1,-(a7)
bsr.w Lfe4c76
move.l (a7)+,d1
ext.w d1
ext.l d1
bsr.w Lfe06ee
move.w ($0004,a7),d3
move.b #$28,(a3)+ ;'('
bsr.w Lfe094a
move.b #$2c,(a3)+ ;','
movem.w (a7)+,d2-d3
bsr.w Lfe08fc
btst.l #$0b,d1
beq.s Lfe0a1e
move.b #$2e,(a3)+ ;'.'
move.b #$6c,(a3)+ ;'l'
Lfe0a1e:
move.b #$29,(a3)+ ;')'
addq.l #2,a7
rts
Lfe0a26:
clr.w d0
move.w (a5),d0
bsr.w Lfe0bb2
move.w (a5)+,d1
move.b #$24,(a3)+ ;'$'
bsr.w Lfe4c62
move.b #$2e,(a3)+ ;'.'
move.b #$77,(a3)+ ;'w'
clr.l d1
move.l (-$0002,a5),d1
bsr.w Lfe06ee
rts
Lfe0a4c:
move.l (a5),d0
bsr.w Lfe0bb2
move.l (a5)+,d1
move.b #$24,(a3)+ ;'$'
move.l d1,-(a7)
bsr.w Lfe4c5c
move.l (a7)+,d1
bsr.w Lfe06ee
rts
Lfe0a66:
move.l a5,d0
move.w (a5),d1
ext.l d1
add.l d1,d0
bsr.w Lfe0bb2
move.w (a5)+,d1
move.b #$24,(a3)+ ;'$'
bsr.w Lfe4c62
movea.l #Lfe0b57,a1
bsr.w Lfe0b44
move.b #$29,(a3)+ ;')'
rts
Lfe0a8c:
move.l a5,d0
bsr.w Lfe0b8c
add.l d1,d0
bsr.w Lfe0bb2
move.w (a5)+,d1
move.w d1,d0
andi.w #$0700,d0
bne.w Lfe07b2
move.w d1,d3
bclr.l #$0f,d3
lsr.w #6,d3
lsr.w #6,d3
clr.w d2
btst.l #$0f,d1
beq.s Lfe0ab8
addq.w #1,d2
Lfe0ab8:
movem.w d2-d3,-(a7)
move.b #$24,(a3)+ ;'$'
bsr.w Lfe4c76
movea.l #Lfe0b57,a1
bsr.s Lfe0b44
movem.w (a7)+,d2-d3
move.b #$2c,(a3)+ ;','
bsr.w Lfe08fc
btst.l #$0b,d1
beq.s Lfe0ae6
move.b #$2e,(a3)+ ;'.'
move.b #$6c,(a3)+ ;'l'
Lfe0ae6:
move.b #$29,(a3)+ ;')'