It is currently Wed May 24, 2017 6:34 am

All times are UTC - 7 hours



Forum rules


Related:



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Apr 10, 2017 1:06 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 18338
Location: NE Indiana, USA (NTSC)
Because no$sns 1.6 is infected, I've been looking for alternative means to debug my SPC700 code. In this post, Oziphantom recommended the debugger in ZSNES.

So I installed ZSNES from Ubuntu's repository.
Code:
$ xfce4-terminal --version
xfce4-terminal 0.6.3 (Xfce 4.12)

Copyright (c) 2003-2012
   The Xfce development team. All rights reserved.

Written by Benedikt Meurer <benny@xfce.org>
and Nick Schermer <nick@xfce.org>.

Please report bugs to <http://bugzilla.xfce.org/>.
$ sudo apt install zsnes
[much omitted]
$ zsnes -d /path/to/my/rom.sfc


It gave me a screen looking like this:
Code:
  - ZSNES debugger -
0─── 65816 ───── CC:142 Y:  0 ───────────────────           0 ────────────────┐
│008009 SEI                    A:0000 X:0000 Y:0000 S:01ff DB:00 D:0000 P:34 E│
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘
(T)race for  (B)reakpoint  (Enter) Next  (M)odify  (F9) Signal  (F1) Run

I pressed F1 to Run, in order to see what it'd do, and instead I got a screen like this:
Do you want to read the
Xfce Terminal manual
online?

You will be redirected to the documentation
website where the help pages are maintained and
translated.

☐ Always go directly to the online documentation


Xubuntu 16.04 LTS includes Xfce 4 Terminal 0.6.3, but the "Disable help window shortcut key (F1 by default)" preference wasn't added until version 0.8.0.

I pressed F9 to Signal, to see what that does, and got "Unknown key code: 273".

The only keys that appear to work are Enter to run one 65816 instruction (and one SPC700 instruction if it is due), T to run a given number of 65816 instructions (and the corresponding number of SPC700 instructions), B to set a breakpoint (but I don't know how I'd advance to it given that Run doesn't work), and M to modify 65816 memory.

What am I doing wrong? Should I install a different terminal emulator?


Top
 Profile  
 
PostPosted: Mon Apr 10, 2017 1:16 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 5682
Location: Seattle
Yes. Try "real" xterm.

e.g. Dosbox's debugger only works with a real xterm, and not my preferred urxvt.


Top
 Profile  
 
PostPosted: Mon Apr 10, 2017 4:55 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 18338
Location: NE Indiana, USA (NTSC)
lidnariq wrote:
Try "real" xterm.

In other words:
Code:
xterm -e zsnes -d /path/to/rom.sfc
(then in the xterm)
s3f74

That's an improvement. Thank you; I'll see what I can do from here.


Top
 Profile  
 
PostPosted: Tue Apr 11, 2017 7:05 am 
Offline

Joined: Mon Mar 27, 2006 5:23 pm
Posts: 1276
tepples wrote:
Thank you; I'll see what I can do from here.


You can party debug like it's 1999. Ninteen ninety nine! :P


Top
 Profile  
 
PostPosted: Tue Apr 11, 2017 7:46 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 18338
Location: NE Indiana, USA (NTSC)
The gap between Super NES debuggers intended to run on a 1999 computer and debuggers intended to run on a Core i series is unfortunate.


Top
 Profile  
 
PostPosted: Tue Apr 11, 2017 9:45 am 
Offline

Joined: Mon Mar 27, 2006 5:23 pm
Posts: 1276
There does exist a middle ground in Geiger's, but of course he too couldn't be bothered to share his source code, even though his entire program only exists thanks to the work of countless other people sharing theirs.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group