There's some way to detect if an access is from the debugger and handle it differently. AFAIK mess/machine/apple2.c does it to protect the read-to-trigger softswitches.