1 MrC
ksherlock edited this page 2014-12-31 05:06:44 -08:00

MrC / MrCPP doesn't seem to work in some cases, exiting with a status of 2 (which isn't documented).

bwt_ConstInteger -> nmCreateMappedNode -> exit(2)

D5 is $000000d in this case.

$00CB3136   MOVE.L     D5,-(A7)                                 ; 2F05
$00CB3138   PEA        $0056                                    ; 4878 0056
$00CB313C   JSR        nmCreateMappedNode                       ; 4EB9 00CBBE84

$00CBBE84   LINK       A6,#$FE70                                ; 4E56 FE70
$00CBBE88   MOVEM.L    A432D6543,-(A7)                          ; 48E7 1E38
$00CBBE8C   MOVE.L     $0008(A6),D6                             ; 2C2E 0008
$00CBBE90   MOVE.L     $000C(A6),D5                             ; 2A2E 000C
$00CBBE94   TST.L      D5                                       ; 4A85
$00CBBE96   BLE.W      $00CBC0AE                                ; 6F00 0216
$00CBBE9A   MOVE.L     $00F1D540,D0                             ; 2039 00F1D540 -- 0
$00CBBEA0   ADD.L      D0,D5                                    ; DA80
$00CBBEA2   CMP.L      $00F1D524,D5                             ; BAB9 00F1D524 -- 00 00 03 e8
$00CBBEA8   BCS.B      $00CBBEB8                                ; 650E
...
$00CBBEB8   CMP.L      $00F1D528,D5                             ; BAB9 00F1D528 --- 00 00 00 0e
$00CBBEBE   BCS.B      $00CBBECA                                ; 650A
...
$00CBBECA   MOVEA.L    $00F1D52C,A0                             ; 2079 00F1D52C -- 00 ab f9 10
$00CBBED0   MOVE.B     $00(A0,D5.L),D0                          ; 1030 5800

abf910:  02 02 01 01 01 01 01 01  01 01 00 01 01 01 00 00   ................
d0 = 1

$00CBBED4   EXT.L      D0                                       ; 49C0
$00CBBED6   MOVEQ.L    #$00000001,D1                            ; 7201
$00CBBED8   CMP.L      D1,D0                                    ; B081
$00CBBEDA   BEQ.B      $00CBBEEA                                ; 670E
...
$00CBBEEA   PEA        $0002                                    ; 4878 0002
$00CBBEEE   JSR        $00F4391A                                ; 4EB9 00F4391A
$00F4391A   JMP        exit                                     ; 4EF9 00E160E0