0Ch BT$SWOF switch off organiser
Input - none -
Output - none -
Description

This system service may be called to switch off the Organiser II.

When switching off, the service saves the entire state of the machine so that on power up everything is restored to exactly the same state as when the service was called.

NOTE that on power up the top 8 bytes of zero page ram (i.e. $F9-$FF) are always trashed by the operating system.

It is easier to intercept the warm startup routine via the BTA_WRM vector to determine if the machine has been switched off than to try and intercept the switch off service via the SWI vector.

Example
        OS      BT$SWOF         ; SWITCH OFF THE MACHINE
HERE:                           ; RESTARTS HERE ON POWER UP
Errors - none -