Register - Login
Views: 99792004
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 04:42:57 AM
Jul - General Game/ROM Hacking - Advent - Integrated SNES Debugger Plugin New poll - New thread - New reply
Next newer thread | Next older thread
MathOnNapkins
Member
Level: 14


Posts: 28/29
EXP: 11316
For next: 1755

Since: 12-17-07


Since last post: 11.6 years
Last activity: 10.8 years

Posted on 10-07-10 05:37:27 PM Link | Quote
(cross posted from RHDN)

Imporant: While it could be used by a novice SNES 65c816 hacker, this set of tools is primarily aimed at experienced users that are jaded with the SNES debugging status quo

Advent is a plugin for Notepad++ that bridges the gap between the textual aspect of coding assembly language for the SNES and actually running it in an emulator debugger. It is modeled to some extent after Visual Studio (and other similar graphical frontends to debuggers). Advent as a whole could be thought of as an entity depending upon three modules:


  • The Advent plugin DLL (authored by yours truly)

  • A special build of byuu's xkas version 0.06 (see http://byuu.org/programming/)

  • A special build of byuu's bsnes version 0.67 (the debugger build)



  • This is quite a specific set of tools, but nothing about this setup necessarily dictates that they be used. Notepad++ is Windows only but a comparable editor on Linux or Mac could have a similar plugin developed. Geiger's Debugger could be interfaced with this debugging protocol without too much fuss. Other assemblers could output the same debugger information. In fact the debug information format ought to be rewritten in the future to be more compact and contain more information, but that's getting ahead of ourselves.

    One thing I should note is that xkas v0.06 has macros and this presented a bit of a stumbling block for outputting debugging information. So stepping over / into a macro may make it seem like you've lost the current line marker, but it will reemerge after the end of the macro. Currently only the first instruction of a macro will register in the debug file.

    Download Link
    (contains a readme with instructions)
    http://math.arc-nova.org/Releases/Advent_v010.zip

    BSNES screenshots:
    early image showing remote breakpoint enable / disable
    current (tad ugly) image showing added stepping commands

    Notepad++ screenshots:
    early image using stock marker symbols
    later screenshot with custom marker symbols added
    current screenshot showing debugger commands

    Imporant: I'm not interested in any complaints about the current tools involved (see the arguments above for why it is irrelevant to complain about them)

    By complaints, I generally mean critiques along these lines, not actual bugs:
    Complaint: "bsnes is slow on my computer"
    My response: it's not perfect on my computer either

    Complaint: "Notepad++?!!! Why don't you use Notepad2 / Crimson Edit / TextPad / MaxiPad / Notepad Advent Children / etc?"
    My response: that's like, your opinion, man

    Complaint: "xkas v0.06 is discontinued"
    My response: yeah but a lot of people still use it b/c later versions, while having cleaner syntax, lack features that v0.06 had, and at least in my peer group v0.06 still seems to be widely used.

    Glad we got those out of the way. Hope at least someone has some fun with this.


    ____________________
    Zelda 3 (ALTTP) Hacking Forum on Arc-Nova
    Maxwell

    Level: 47


    Posts: 127/500
    EXP: 727426
    For next: 38777

    Since: 09-30-10


    Since last post: 11.2 years
    Last activity: 11.1 years

    Posted on 10-07-10 10:15:10 PM Link | Quote
    This is pretty amazing so this is kinda like the missing link between the debugger and the complier that strings them together in a pleasant looking way? If so this could be the thing that may get me started with SNES homebrew.

    ____________________
    MathOnNapkins
    Member
    Level: 14


    Posts: 29/29
    EXP: 11316
    For next: 1755

    Since: 12-17-07


    Since last post: 11.6 years
    Last activity: 10.8 years

    Posted on 10-08-10 02:01:54 AM Link | Quote
    Now that you mention it, this would actually work a lot better for homebrew than for rom hacking, b/c with a homebrew you (almost certainly) have access to all the code being assembled.

    ____________________
    Zelda 3 (ALTTP) Hacking Forum on Arc-Nova
    Sukasa

    Level: 123


    Posts: 2730/4326
    EXP: 20935518
    For next: 295748

    Since: 07-07-07


    Since last post: 1.1 years
    Last activity: 1.1 years

    Posted on 10-09-10 01:59:39 AM Link | Quote

    This has seriously piqued my curiosity. A VS-inspired SNES debugging (and dev?) suite has a ton of potential. I'll definitely be downloading this stuff and having a look at it.

    ____________________
    * hydrapheetz puts on the kittydunce hat
    Next newer thread | Next older thread
    Jul - General Game/ROM Hacking - Advent - Integrated SNES Debugger Plugin New poll - New thread - New reply


    Rusted Logic

    Acmlmboard - commit 47be4dc [2021-08-23]
    ©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

    27 database queries, 1 query cache hits.
    Query execution time: 0.080891 seconds
    Script execution time: 0.010603 seconds
    Total render time: 0.091494 seconds