
; Listing19q1.s
; Illegal Memory Access
; 
; (WinUAE 5.3.0 A500 configuration)
; Console-Debugger

; wd [<0-1>]            Enable illegal access logger. 1 = enable break.

I don't know why this command get the name 'wd'? Maybe better would be:
'im' illegal memory (access). And then wd would be free as command for
delete all memory watchpoints similar to fd command. 

Then what's the logic behind 'wd'?
>wd
Illegal memory access logging disabled
>wd 0
Illegal memory access logging enabled. Break=1
>wd 0
Cleared logging addresses 00000000 - 00000001
>wd 1
Cleared logging addresses 00000001 - 00000002
>wd
Illegal memory access logging disabled
>wd 1
Illegal memory access logging enabled. Break=1
>wd 1
Cleared logging addresses 00000001 - 00000002
>wd 0
Cleared logging addresses 00000000 - 00000001
>wd
Illegal memory access logging disabled
>wd 0
Illegal memory access logging enabled. Break=1
>wd 30000
Cleared logging addresses 00030000 - 00030001
>wd 30000 40000
Cleared logging addresses 00030000 - 00070000
>

Maybe better would be: wd enable/disable illegal access logger 
(or even better 'im')
>wd 
Illegal memory access logging enabled
>wd
Illegal memory access logging disabled

Like 'smc', the 'wd' needs a dummy memwatch 
>w 0 $0 $1000000 none								; w 0 <start> <len> none
 0: 00000000 - 00FFFFFF (16777216) RWI NONE			; it's need for wd (max. 16MB)

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

>dm																				; look a A500 memory dump
00000000    2048K/4 =     512K ID* C16 Chip memory
00200000    8192K/0 =    8192K --  F16 <none>
00A00000    2048K/0 =    2048K --  CIA CIA
00C00000     512K/1 =     512K ID* C16 Slow memory
00C80000    1024K/0 =    1024K --  F16 Custom chipset
00D80000     256K/0 =     256K --  C16 <none>
00DC0000      64K/0 =      64K --  C16 Battery backed up clock (MSM6242B)
00DD0000      64K/0 =      64K --  C16 <none>
00DE0000     128K/0 =     128K --  C16 Custom chipset
00E00000     512K/2 =     256K ID* F16 Kickstart ROM (C4F0F55F)
=KS ROM v1.3 (A500,A1000,A2000) rev 34.5 (256k) [315093-02]
00E80000     512K/0 =     512K --  F16 <none>
00F00000      64K/1 =      64K --* F16 UAE Boot ROM
00F10000     448K/0 =     448K --  F16 <none>
00F80000     512K/2 =     256K ID* F16 Kickstart ROM (C4F0F55F)
=KS ROM v1.3 (A500,A1000,A2000) rev 34.5 (256k) [315093-02]
>

Which areas would be a potential 'illegal access area'?
All <none> and ROM regions and maybe the mirrored memory areas.

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

00000000    2048K/4 =     512K ID C16 Chip memory		; Chip memory
;0800000	copy of chip 
;1000000	copy of chip
;1800000	copy of chip

But there is no illegal memory access log in the mirrored chip ram area
from $800000 - $1FFFFF because wd supports only the first 16M of address space.

>w 0 $0 $1FFFFFF none
 0: 00000000 - 01FFFFFE (33554431) RWI NONE										; false message?

if Paths 'Log window' enabled and Misc Panel 'Log illegal memory accesses' is
ticked, the illegal memory access is logged

Illegal wput at 0088888a=1234abba PC=2464c										; works 

https://eab.abime.net/showthread.php?t=81127