English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 August 2010, 22:19   #1
Khyron
Registered User
 
Join Date: Feb 2010
Location: SnowLand, Canada
Posts: 74
Break on Memory Access?

Anyone know if there's a way, in the debugger (or some other tool) to break when a specific memory location is written to ror read from?

I'm trying to find some code in kickstart 2.X & 3.X that are acessing a specific chipset register so I can modify it..
Khyron is offline  
Old 20 August 2010, 22:22   #2
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,522
Start the WinUAE debugger with 'Shift + F12' and use :
f <address> Add/remove breakpoint
Type 'h' to get a list of available commands

Edit : Maybe try
w <num> <address> <length> <R/W/I/F/C> [<value>] (read/write/opcode/freeze/mustchange)
Add/remove memory watchpoints
as well.
TCD is offline  
Old 20 August 2010, 22:39   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
You want to use 'w' command (f is break when PC equals address). Basic syntax: w <index> <address> <length> <r/w/rw>. Check help for other options.

Note that all break points are unreliable in JIT modes.
Toni Wilen is offline  
Old 21 August 2010, 00:10   #4
Khyron
Registered User
 
Join Date: Feb 2010
Location: SnowLand, Canada
Posts: 74
Thanks Guys!! the w command works fine.. had the JIT enabled which was causing the problem.

Going to modify a PAL A600 to NTSC (swap the encoder or main xtal etc..), so It can be used on a regular NTSC TV.. just had to find a way to switch the PAL agnus to NTSC early on. Kickstart 1.3 was easy, but 2.X&3.1 would go and modify the register back to PAL a few times during the init..
Khyron 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
memory access speed question Lord Riton Coders. General 42 27 February 2019 14:26
access emulated memory ara support.WinUAE 6 03 April 2010 13:05
Before I break something... (if I haven't already) asm1 support.Hardware 24 19 March 2009 01:54
Warranty seal on a mint A500: To break or not to break? StevenJGore support.Hardware 16 11 February 2009 23:21
break's and demos bobbybearing request.Demos 2 12 August 2006 21:44

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 23:39.

Top

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