20 August 2010, 22:19 | #1 |
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.. |
20 August 2010, 22:22 | #2 |
HOL/FTP busy bee
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. |
20 August 2010, 22:39 | #3 |
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. |
21 August 2010, 00:10 | #4 |
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.. |
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 |
|
|