Almost certainly, apparently! It's almost as if this eventuality was prepared for!
>From the WP-2 service manual: "HANDLER OF TIMER INTERRUPT To handle the TIMER interrupt, the following must be done. 1) Refer to hook table of timer interrupt. 2) Initialize the TIMER device. 3) Power Switch status is checked and handled. 4) Control the LOW BATTERY indication. 5) Control the LOW BACK UP indication. 6) Auto Power Off control 7) Refer to hook table of key scan. &) Handle the key scan. *If you want to change the Key Scan Handler of the WP-2 to another handier, you need to design the other Key Scan Handler as a RUN FILE PROGRAM. The initialize routine must rewrite the hook table to hook the other handler; that is, the entry address of the handler is written from the second byte in the hook table, and the instruction code for jump command is written into the first byte. The instruction 'POP' must be included in the handler routine as a dummy to ignore the handler of the WP-2.* HOOK TABLE OF DEBUGGER To refer the hook table of the Debugger, execute the instruction 'RST 28H\ It will be used by the BREAK function to set the instruction 'RST 28H' to the address of the break pointer. 4-19" ... You could write it yourself. Or just feed the manual into Claude Code or similar and have it create a loadable Z80 program for you. Seems like everything is there. Even a debugger hook! That might make it easy for a coding agent to iterate through experiments. Neat little project. -- John.
