View Single Post
Old 17 March 2018, 03:54   #8
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 846
So I gave it a try and not sure if I am using the debugger correctly (I am mainly used to the FS-UAE debugger).

Load my game with uaedbg game.exe

A console windows shows a bunch of Allocation messages, then debugger appears at the entry point to my program - I hit "g" and game starts.

Menu system runs ok, then when I start the game the debugger breaks on my vblank wait routine on the access to $dff004/VPOSR, PC/A7 etc all seems to be in a valid segment range from "seg"

Code:
  D0 A3000003   D1 00000000   D2 00000000   D3 00000000
  D4 00000000   D5 00000001   D6 00000000   D7 00000000
  A0 700FA698   A1 00000000   A2 00000040   A3 7005FCE0
  A4 700080EC   A5 700FA658   A6 700C10D4   A7 70180848
USP  70180848 ISP  07802288 SFC  00000000 DFC  00000000
CACR 00002111 VBR  00000000 CAAR 00000000 MSP  00000000
T=00 S=0 M=0 X=0 N=1 Z=0 V=0 C=0 IMASK=0 STP=0
0: FFFF-7FFFFFFF-FFFFF800 +nan FFFF-7FFFFFFF-FFFFF800 +nan
2: FFFF-7FFFFFFF-FFFFF800 +nan FFFF-7FFFFFFF-FFFFF800 +nan
4: FFFF-7FFFFFFF-FFFFF800 +nan FFFF-7FFFFFFF-FFFFF800 +nan
6: FFFF-7FFFFFFF-FFFFF800 +nan FFFF-7FFFFFFF-FFFFF800 +nan
FPSR: 00000000 FPCR: 00000000 FPIAR: 00000000 N=0 Z=0 I=0 NAN=0
700080F0 [0000E8] 2039 00df f004           MOVE.L $00dff004,D0
Segment 1: 000003e9 70008000-70060047
700080F6 [0000EE] c0bc 0001 ff00           AND.L #$0001ff00,D0
Next PC: 700080fc

seg
Segment 1: 000003e9 70008000 - 70060047 (360520)
Segment 2: 000003ea 70068100 - 700c3efb (376316)
Segment 3: 400003ea 700cbf00 - 700cc79b (2204)
Segment 4: 000003eb 700d4800 - 700fb44f (158800)
Segment 5: 400003eb 70103500 - 70176817 (471832)
Segment 6: 0000ffff 7017e900 - 701808ff (8192)

d 700080eC
_hw_waitVerticalBlank:
700080EC [0000E4] 48e7 8000                MOVEM.L D0,-(A7)
700080F0 [0000E8] 2039 00df f004           MOVE.L $00dff004,D0
700080F6 [0000EE] c0bc 0001 ff00           AND.L #$0001ff00,D0
700080FC [0000F4] b0bc 0001 2d00           CMP.L #$00012d00,D0
70008102 [0000FA] 66ec                     BNE.B #$ec == $700080f0 (T)
70008104 [0000FC] 2039 00df f004           MOVE.L $00dff004,D0
7000810A [000102] c0bc 0001 ff00           AND.L #$0001ff00,D0
70008110 [000108] b0bc 0001 2d00           CMP.L #$00012d00,D0
70008116 [00010E] 67ec                     BEQ.B #$ec == $70008104 (F)
70008118 [000110] 4cdf 0001                MOVEM.L (A7)+,D0
alpine9000 is offline  
 
Page generated in 0.06148 seconds with 11 queries