recording PSG and SCC registers in open/bluemsx

بواسطة ARTRAG

Enlighted (6923)

صورة ARTRAG

28-02-2011, 17:52

Hi
is there a script in openmsx or a feature in bluemsx able to record the change of status of the registers of the PSG and/or of the SCC?

Ideally I would need a sort of log fille telling lines like:

time stamp, register, new value

Where time stamps should have resolution not lower than the vblank on the emulated machine and registers could be also the SCC registers

Is there soomenting already that does this?

LOL!

Login أوregister لوضع تعليقاتك

بواسطة wolf_

Ambassador_ (10088)

صورة wolf_

28-02-2011, 18:10

yes. It doesn't time stamp iirc, it just records the soundchip state of each interrupt.. Tongue Dunno the name of the console command anymore.. but no doubt someone will.

بواسطة Manuel

Ascended (19273)

صورة Manuel

28-02-2011, 18:13

try the psg_log and reg_log commands:
psg_log Log or replay PSG register values in binary format
reg_log Log or replay register values for the specified debuggable in ASCII format

the binary format is the PSG format, which some other emulators use.

بواسطة wolf_

Ambassador_ (10088)

صورة wolf_

28-02-2011, 18:17

See? Hannibal

بواسطة meits

Scribe (6530)

صورة meits

28-02-2011, 18:33

See? HannibalThat's something completely different...Running Naked in a Field of Flowers

بواسطة ARTRAG

Enlighted (6923)

صورة ARTRAG

28-02-2011, 19:50

humm
I've the LOG, but how is coded?
I see it is binary, where is explained its format?

بواسطة wolf_

Ambassador_ (10088)

صورة wolf_

28-02-2011, 21:04

It's the registers per interrupt, which you can probably look up elsewhere. For instance here.

بواسطة Manuel

Ascended (19273)

صورة Manuel

28-02-2011, 22:07

Use the other one for readable ASCII format. All regs are output per line in the file, and that is logged each frame.

The .PSG format is from fMSX... See http://www.msx.org/forumtopic6258.html

See the script: http://openmsx.svn.sourceforge.net/viewvc/openmsx/openmsx/trunk/share/scripts/psg_log.tcl

Well, it's in your own openMSX installation... documented and all :)

بواسطة wouter_

Champion (508)

صورة wouter_

28-02-2011, 22:14

humm
I've the LOG, but how is coded?
I see it is binary, where is explained its format?

I guess you mean the binary .psg file format? There's a short description of it at the top of the share/scripts/psg_log.tcl file in openMSX:


# Binary format PSG logger
#
# (see http://www.msx.org/forumtopic6258.html for more context)
#
# Shiru wrote:
#
# Is it possible to make output in standart binary *.psg format (used in
# emulators like x128, very-very old version of fMSX, Z80Stealth and some other)?
#
# Header:
#
# +0 4 Signature #50 #53 #47 #1A ('PSG' and byte #1A)
# +4 1 Version number
# +5 1 Interrupts freq. (50/60)
# +6 10 Unused
#
# Note: only signature is necessary, many emulators just fill other bytes by zero.
#
# Data stream:
#
# #00..#FC - register number, followed by data byte (value for that register)
# #FD - EOF (usually not used in real logs, and not all progs can handle it)
# #FE - number of interrupts (followed byte with number of interrupts/4, usually not used)
# #FF - single interrupt

The psg_log.tcl script is very short. It shouldn't be too hard for you to adapt it to log in the exact format you want.