However, after compiling for the ZX44t using IDE 1.7.5 and compiler 4.3.13, it seems that Option AtnChr &H00 disables ZxCmdMode. Specifically, application calls to ZxCmdMode are compiled without error but don't actually do anything, and the compiled application does not automatically invoke ZxCmdMode if &H00 appears in the serial stream.
What I was hoping was that Option AtnChr &H00 would have the same effect as writing &H00 to persistent &H13 in a circa-2012 ZX24r, i.e. that it would enable application calls to ZxCmdMode without linking code to automatically trap an ATN character. That way my application could detect the ATN character itself and perform some housekeeping (e.g. writing data to persistent memory) before calling ZxCmdMode.
So far, the only way I've found to approach this with the current compiler and ZX44t is as follows:
- - I use Option AtnChr to specify an allowable non-zero value *other* than the desired ATN character in order to enable ZxCmdMode().
- I include code to trap the desired ATN character, perform the required housekeeping, and call ZxCmdMode().
- I instruct the IDE to use the desired ATN character (not the Option AtnChar value) for download.
Is there a way to enable application-controlled entry into ZxCmdMode that doesn't present this risk?
TIA,
Phil