Unlock the 14K of RAM hidden beneath the XL/XE operating system with PORTB bit 0: copy and patch the OS in RAM, or keep the ROM switched off with NMI and IRQ trampolines. Two tested programs.
How the Atari OS routes every NMI and IRQ: the ROM entry points, the VDSLST to VBREAK vector table, dispatch order on OS-A, OS-B and XL/XE, hooking VIMIRQ safely, and a BRK quirk measured on real ROMs.