English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 14 June 2015, 07:07   #1
SparkyNZ
Registered User
 
Join Date: Oct 2014
Location: New Zealand
Posts: 62
Question WinUAE Debugger - Audio Register Breakpoints

This is probably one for Toni

I am trying to find out whereabouts the audio registers are being accessed in a game but I am confused by the syntax of the 'w' command.

Looking at WinUAE's source, there is an "AUD" mask that I can use.. but what range of addresses do I run the 'w' command over? Is it the address of the custom registers themselves or the address of the entire chip memory (I am emulating a 2Meg chip Amiga).

e.g. w 1 dff000 fff AUD ???
SparkyNZ is offline  
Old 14 June 2015, 15:57   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
AUD (and others) are for breaking when enabled DMA channel accesses chip ram. CPU accesses only is the default.

If you only want to break to debugger when audio registers are accessed by CPU, w <num> dff0a0 40.

If you want to break when audio dma read next sample word from chip ram, w <num> 0 200000 AUD
Toni Wilen is online now  
Old 14 June 2015, 21:40   #3
SparkyNZ
Registered User
 
Join Date: Oct 2014
Location: New Zealand
Posts: 62
Awesome! Thank you. I thought I tried "w 1 dff000 fff R" yesterday and that didn't work.. But "w 1 dff0a0 40" worked like a charm. Thanks Toni.
SparkyNZ is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE Debugger Register Display SparkyNZ Coders. Asm / Hardware 3 11 June 2015 20:55
WinUAE Debugger - Breakpoints when memory read SparkyNZ Coders. Asm / Hardware 5 07 March 2015 23:48
Best Audio Config in Winuae for a Creative X-Fi Audio Card shaf support.WinUAE 2 14 June 2012 16:27
Can't get WinUAE to register my ROMs xaero1 support.WinUAE 10 19 December 2008 18:01
Debugger: replace register value AmiGer request.UAE Wishlist 2 06 January 2005 14:30

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:19.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06604 seconds with 13 queries