hook_pc1 1 -1 -1 hook_rd1 1 -1 -1 hook_wr1 1 0200DACC 0200DACC ------------------------------------------------------ ; Any notes can follow here ; ; but do not modify above comments ; Mode 0 = write into 'trace.txt' log if instruction logging is active ; Mode 1 = write into 'hook.txt' ; ; ; Example: ; hook_wr1 1 0200DACC 0200DACC = Logs any instruction that writes to 0200DACC to hook.txt ; hook_rd1 1 0200DACC 0200DACC = Logs any instruction that reads 0200DACC to hook.txt ; ; Logging all instructions when logging hook.txt entries is preferred, because you can ; see all of the instructions that led to the hook.txt entry ending up the way it did. ;'/' = toggles instruction logging to 'trace.log' ;'.' = dumps BG info, RAM, CRAM, VRAM, WRAM, SRAM ;',' = toggles memory logging to 'hook.txt' (set by 'hook_log.txt') Gameboy: - rd/wr use $0000-ffff memory map range - pc uses $00000-fffff ROM range Gameboy Advance: - rd/wr/pc use $0000:0000-ffff:ffff memory map range