how can i debug zsnes?

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

how can i debug zsnes?

Post by butfunghon »

i find bug and want try to debug, but how?
http://board.zsnes.com/phpBB2/viewtopic.php?t=5655
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

ZSNES DOS is the only one with a built-in debugger atm. Use that... if you know what you are doing.
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

thx, but i cant see any option in wip
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

If you want to use the debugger, enter ZSNES with the commandline parameter -d

ZSNESw has the debugger feature, too, but AFAIK it is still in the "beta" status. The DOS one is probably the better one to use, ATM.
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

oh, thx :)
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

i tried with zsnes/snes9x(geiger)/Sleuth, snes9x and sleuth is find but they output is different

Sleuh: just loop at 8d10-8d15
008d10 lda HVBJOY
008d13 and #$81
008d15 bne $8d10

Snes9x:
$00/8D13 29 81 AND #$81 A:FF02 X:30DB Y:30E5 P:envMxdIzc
$00/8D15 D0 F9 BNE $F9 [$8D10] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D17 AD 19 42 LDA $4219 [$00:4219] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D1A 85 D2 STA $D2 [$00:30D2] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D1C AD 18 42 LDA $4218 [$00:4218] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D1F 85 D1 STA $D1 [$00:30D1] A:FF80 X:30DB Y:30E5 P:eNvMxdIzc
$00/8D21 29 0F AND #$0F A:FF80 X:30DB Y:30E5 P:eNvMxdIzc
$00/8D23 85 E6 STA $E6 [$00:30E6] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D25 AD 16 40 LDA $4016 [$00:4016] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D28 4A LSR A A:FF01 X:30DB Y:30E5 P:envMxdIzc
$00/8D29 26 E6 ROL $E6 [$00:30E6] A:FF00 X:30DB Y:30E5 P:envMxdIZC
$00/8D2B AD 1B 42 LDA $421B [$00:421B] A:FF00 X:30DB Y:30E5 P:envMxdIzc
$00/8D2E 85 D4 STA $D4 [$00:30D4] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D30 AD 1A 42 LDA $421A [$00:421A] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D33 85 D3 STA $D3 [$00:30D3] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D35 29 0F AND #$0F A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D37 85 E7 STA $E7 [$00:30E7] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D39 AD 1F 42 LDA $421F [$00:421F] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D3C 85 D6 STA $D6 [$00:30D6] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D3E AD 1E 42 LDA $421E [$00:421E] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D41 85 D5 STA $D5 [$00:30D5] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D43 29 0F AND #$0F A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D45 85 E8 STA $E8 [$00:30E8] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D47 AD 17 40 LDA $4017 [$00:4017] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D4A 4A LSR A A:FF01 X:30DB Y:30E5 P:envMxdIzc
$00/8D4B 26 E7 ROL $E7 [$00:30E7] A:FF00 X:30DB Y:30E5 P:envMxdIZC
$00/8D4D 4A LSR A A:FF00 X:30DB Y:30E5 P:envMxdIzc
$00/8D4E 26 E8 ROL $E8 [$00:30E8] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D50 9C 01 42 STZ $4201 [$00:4201] A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D53 A0 10 00 LDY #$0010 A:FF00 X:30DB Y:30E5 P:envMxdIZc
$00/8D56 AD 17 40 LDA $4017 [$00:4017] A:FF00 X:30DB Y:0010 P:envMxdIzc
$00/8D59 C2 20 REP #$20 A:FF01 X:30DB Y:0010 P:envMxdIzc
$00/8D5B 4A LSR A A:FF01 X:30DB Y:0010 P:envmxdIzc
$00/8D5C 26 D7 ROL $D7 [$00:30D7] A:7F80 X:30DB Y:0010 P:envmxdIzC
$00/8D5E 4A LSR A A:7F80 X:30DB Y:0010 P:eNvmxdIzC
$00/8D5F 26 D9 ROL $D9 [$00:30D9] A:3FC0 X:30DB Y:0010 P:envmxdIzc
$00/8D61 E2 20 SEP #$20 A:3FC0 X:30DB Y:0010 P:envmxdIZc
$00/8D63 88 DEY A:3FC0 X:30DB Y:0010 P:envMxdIZc
$00/8D64 D0 F0 BNE $F0 [$8D56] A:3FC0 X:30DB Y:000F P:envMxdIzc

$00/8D56 AD 17 40 LDA $4017 [$00:4017] A:3FC0 X:30DB Y:000F P:envMxdIzc
$00/8D59 C2 20 REP #$20 A:3F01 X:30DB Y:000F P:envMxdIzc
$00/8D5B 4A LSR A A:3F01 X:30DB Y:000F P:envmxdIzc
$00/8D5C 26 D7 ROL $D7 [$00:30D7] A:1F80 X:30DB Y:000F P:envmxdIzC
$00/8D5E 4A LSR A A:1F80 X:30DB Y:000F P:eNvmxdIzC
$00/8D5F 26 D9 ROL $D9 [$00:30D9] A:0FC0 X:30DB Y:000F P:envmxdIzc
$00/8D61 E2 20 SEP #$20 A:0FC0 X:30DB Y:000F P:envmxdIZc
$00/8D63 88 DEY A:0FC0 X:30DB Y:000F P:envMxdIZc
$00/8D64 D0 F0 BNE $F0 [$8D56] A:0FC0 X:30DB Y:000E P:envMxdIzc

$00/8D56 AD 17 40 LDA $4017 [$00:4017] A:0FC0 X:30DB Y:000E P:envMxdIzc
$00/8D59 C2 20 REP #$20 A:0F01 X:30DB Y:000E P:envMxdIzc
$00/8D5B 4A LSR A A:0F01 X:30DB Y:000E P:envmxdIzc
$00/8D5C 26 D7 ROL $D7 [$00:30D7] A:0780 X:30DB Y:000E P:envmxdIzC
$00/8D5E 4A LSR A A:0780 X:30DB Y:000E P:eNvmxdIzC
$00/8D5F 26 D9 ROL $D9 [$00:30D9] A:03C0 X:30DB Y:000E P:envmxdIzc
$00/8D61 E2 20 SEP #$20 A:03C0 X:30DB Y:000E P:envmxdIZc
$00/8D63 88 DEY A:03C0 X:30DB Y:000E P:envMxdIZc
$00/8D64 D0 F0 BNE $F0 [$8D56] A:03C0 X:30DB Y:000D P:envMxdIzc

$00/8D56 AD 17 40 LDA $4017 [$00:4017] A:03C0 X:30DB Y:000D P:envMxdIzc
$00/8D59 C2 20 REP #$20 A:0301 X:30DB Y:000D P:envMxdIzc
$00/8D5B 4A LSR A A:0301 X:30DB Y:000D P:envmxdIzc
$00/8D5C 26 D7 ROL $D7 [$00:30D7] A:0180 X:30DB Y:000D P:envmxdIzC
$00/8D5E 4A LSR A A:0180 X:30DB Y:000D P:eNvmxdIzC

Zsnes:
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BC LDA $00CA [0000CA] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
?2D0BF BNE $D0BC [02D0BC] A:0006 X:3C00 Y:0001 S:377C DB:00 D:0000 P:00
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

and i want to find sa1 infomation, but i just can find this, can anyone give hand? :( http://img.photobucket.com/albums/v204/ ... 1_cart.jpg
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

sorry~~ i find somthing in this forum.. :p
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

Please lay off the triple posting habit, thanks. What is it that you want to know about SA-1?
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
butfunghon
Rookie
Posts: 28
Joined: Tue Dec 06, 2005 12:13 pm

Post by butfunghon »

sorry,b4 i know nothing about sa-1, now i know a bit of this :p sa-1 is a faster 65816, so i find nothing about this dsp, that right? but why zsnes and snes9x still have bugs with this?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

...

Because of all the evil in the world.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Post Reply