; MODE.ASM -- a bounded HD6309 experiment for Disk BASIC at reset mode. ; Run on a fresh HD6309 guest, with MD=0. Both stops are before instructions. org $3f00 start pshs cc ; remember BASIC's interrupt masks orcc #$50 ; mask IRQ and FIRQ for the short experiment ldmd #1 ; select 6309 native mode native ldw #$1234 ; inspect MD, then step and read E and F ldmd #0 ; restore reset mode before calling BASIC restored puls cc ; restore the caller's condition codes rts end start