Boiler - log writes to ff8800 - YM register select/GISELECT

A forum for anything about the Steem Engine STE emulator, comments, problems, bug reports etc. Steven Seagal regularly provides updated versions of the original STEem code.

Moderators: Mug UK, Steem Authors, Moderator Team

aag
Atari freak
Atari freak
Posts: 50
Joined: Wed May 09, 2007 9:20 pm
Location: West Yorkshire, UK
Contact:

Boiler - log writes to ff8800 - YM register select/GISELECT

Postby aag » Mon Dec 05, 2016 8:58 am

Hi

(I'm using the SSE Steem Boiler 3.8.2.exe if that makes a difference.)

Just wondering if there is a way/how to log the writes to address ff8800?

For a learning exercise - I'm trying to debug/re-implement some YM playback routine. My reworked code works to a point - so I want to compare the register writes/values with the orginal (logged in boiler) vs mine (some x86 C code).

I've been able to get a boiler log containing the timer A's & writes to FF8802 - but can't seem to get logs to ff8800?

Here's a sample of the log file

MFP: Timer A timeout at 321006468 timeout was 321006463 period was 1005
01425C: Wrote to address $FF8802, new value is 7 ($0007)
014266: Wrote to address $FF8802, new value is 26 ($001A)
014280: Wrote to address $FF8802, new value is 95 ($005F)

I'd really like to log the register selects.

Under the SSE tab - there's a monitor address range and output trace - but I can't seem to get it to work.

I'm sure there must be a way to do it - but I can't figure it out.

Any chance someone could post instructions on how to do it?

Thanks in advance

AAG.

User avatar
Steven Seagal
Atari God
Atari God
Posts: 1892
Joined: Sun Dec 04, 2005 9:12 am
Location: Undisclosed
Contact:

Re: Boiler - log writes to ff8800 - YM register select/GISELECT

Postby Steven Seagal » Thu Dec 08, 2016 8:45 am

Hi,
Here's part of the updated Boiler 3.8.3 release notes:

TRACE
------

However an alternative 'Trace' system is used in the SSE version.
You can command the output by selecting log options.
This parallel system was developed because I'm more familiar with it and
I wanted it to work in the 'non-boiler', debug build of Visual C++, in
the IDE output window or a file at choice.
Each time you quit the boiler, the traces are available in the file
'TRACE.txt'. The file is also updated each time you stop emulation.
'Suspend logging' won't suspend the traces. This is commanded by SSE option
'Output TRACE to file'.
For some aspects, it's not as detailed as Steem's original log.

IO:

To obtain raw IO reads or writes, you need to:
Check Log option IO
Check the Log option corresponding to the devices you're interested in.
eg: Sound for the PSG
Check 'w' or 'r' in the Control Mask Browser (SSE option), line TRACE IO


Doing this you get something like that:

Code: Select all

7716320 PC FEB2 write byte 8 to FF8800
7716348 PC FEB8 write byte D to FF8802
7717140 PC FEB2 write byte 8 to FF8800
7717168 PC FEB8 write byte D to FF8802
7717940 PC FEB2 write byte 8 to FF8800
7717968 PC FEB8 write byte D to FF8802
7718748 PC FEB2 write byte 8 to FF8800
7718776 PC FEB8 write byte D to FF8802
7719560 PC FEB2 write byte 8 to FF8800
7719588 PC FEB8 write byte D to FF8802
7720368 PC FEB2 write byte 8 to FF8800
7720396 PC FEB8 write byte D to FF8802
7721176 PC FEB2 write byte 8 to FF8800
7721204 PC FEB8 write byte D to FF8802
7721984 PC FEB2 write byte 8 to FF8800
7722012 PC FEB8 write byte D to FF8802
7722808 PC FEB2 write byte 8 to FF8800
7722836 PC FEB8 write byte D to FF8802
7723608 PC FEB2 write byte 8 to FF8800
7723636 PC FEB8 write byte C to FF8802
7724416 PC FEB2 write byte 8 to FF8800
7724444 PC FEB8 write byte C to FF8802
7725224 PC FEB2 write byte 8 to FF8800
7725252 PC FEB8 write byte C to FF8802
7726040 PC FEB2 write byte 8 to FF8800
7726068 PC FEB8 write byte B to FF8802
7726848 PC FEB2 write byte 8 to FF8800
7726876 PC FEB8 write byte B to FF8802



You can also trace writes by clicking in the Mon column of a memory browser like you apparently did.
The trick is to reduce size of Hex column so that you have one word per line. This powerful feature was in original Steem.

aag
Atari freak
Atari freak
Posts: 50
Joined: Wed May 09, 2007 9:20 pm
Location: West Yorkshire, UK
Contact:

Re: Boiler - log writes to ff8800 - YM register select/GISELECT

Postby aag » Tue Dec 13, 2016 6:15 pm

Cheers for the hints - I've got it working.

Thanks again!


Social Media

     

Return to “Steem”

Who is online

Users browsing this forum: No registered users and 1 guest