![]() |
||||||||||
![]() Home ![]() |
Automatically ceasing program executionA useful feature of AppBasic applications is that they automatically cease execution when a Quit_Quit event (&82A91) occurs. This event can be attributed in the design of resfiles so applications can be made to stop without the need for any code being written. |
|||||||||
![]() | ||||||||||
![]() |
Make a copy of !MinApp, deleting its !RunImage file ![]() |
|||||||||
![]() |
Add an AppBasic !RunImage directory The !RunImage directory should contain a !Run file (of type Obey) containing the command
|
|||||||||
![]() |
Edit the resfile so that selecting the “Quit” menu-entry generates the Quit_Quit event
|
|||||||||
![]() |
Save the resfile - the application will now work exactly as the original and can be compressed to a single !RunImage file.
Notes: !MinApp's original C !RunImage file is 4,383 bytes long. The compressed !RunImage file produced by the above method is c. 550 bytes and will run in a wimpslot of 8K. |
|||||||||
![]() |
Worked solution |