﻿hook_pc1 1 -1 -1
hook_pc2 1 -1 -1
hook_pc3 1 -1 -1

hook_rd1 1 802b3cc0 802b3cc0
hook_rd2 1 -1 -1
hook_rd3 1 -1 -1

hook_wr1 1 802b3cc0 802b3cc0
hook_wr2 1 -1 -1
hook_wr3 0 -1 -1

; ---------------------------------------------------------------------
; ---------------------------------------------------------------------

; Comments:
;
; mode = 0/1 (no meaning)
; lower address (in hex)
; upper address (in hex)
;
; Use these addresses for each mode (independent of real MMU mapping):
; - 8000:0000-807f:ffff = RDRAM
; - b000:0000-b1ff:ffff = ROM
; PI DMAs are logged automatically.


Tip:
The PC logger takes a 'START' and 'STOP' address.
That means it blindly logs instructions to 'hook.txt' until it sees the STOP address.

Using 'hook_pc1 2 3c45e -1' will begin logging at $3c45e ROM but will never terminate.


Tip:
You can turn on and off instruction logging. It will leave a 'TRACE' tag.
So doing multiple logs in the same gameplay session can _isolate_ the code
you want to find.

As long as you do not close the emulator, the log file will remain active.