Is there a way to get a dump of a RAM address frame-by-frame as it's running?

Started by andrew87, January 30, 2019, 01:58:32 AM

Previous topic - Next topic

andrew87

Hello,

First time using Geiger's snes9x Debugger as well as RAM Watch. Is there a way to record a stream of the value at a certain RAM address, frame by frame, as the game runs? Whether it appends to a file continuously, or writes to some in-memory dump or dialog that I can then save, either works.

In Geiger's Debugger I tried to use Trace From with: "CPU Logging" checked, "From Address" 7E05E5, "To Address" 7E05E6, and I've tried both 0 and 1 for "Times executed", as well as checking "Capture every pass", but I don't see any log entries. (Maybe I'm missing an obvious step?) What I do is just let the game run for a few seconds, then see if the .log file has anything, but I only see an EOT.

So then I tried RAM Watch but the Save functionality only seems to save the values at the specific point in time I'm paused.

Thanks in advance,
Andrew87

andrew87

Ah, just realized that the .log files I saw were from the Dump option in the Hex Editor, not related to Trace From. I guess I have no idea what tracing does then.

andrew87

Okay, never mind folks, sorry. I figured it out. I didn't realize the addresses for Trace From were supposed to be CPU instruction addresses (ROM), not RAM. Makes sense, duh. So I found the specific instruction that sets the RAM address I'm concerned with:

$80/8142 8D E5 05    STA $05E5

And tracing from 808142 to 808142, with CPU logging checked, and running the game, I captured what I was looking for:


$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:BBA4 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0470 VC:248 FC:34 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:AB45 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0448 VC:248 FC:35 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:596A X:0004 Y:0000 D:0000 DB:82 S:1FFB P:envmxdizc HC:1288 VC:253 FC:36 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:C023 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0454 VC:248 FC:37 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:C1C0 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0442 VC:248 FC:38 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:C9D1 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0464 VC:248 FC:39 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:F226 X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0452 VC:248 FC:40 I:00
*** IRQ
*** IRQ
*** NMI
$80/8142 8D E5 05    STA $05E5  [$82:05E5]   A:BBCF X:0004 Y:0000 D:0000 DB:82 S:1FFB P:eNvmxdizc HC:0474 VC:248 FC:41 I:00
*** IRQ
*** IRQ
*** NMI


Sorry to spam.