Newbie advice - clean assembly code termination
Posted: Sat Jan 28, 2023 7:46 am
Hi all,
In my first project when I want the program to end, I reset the screen colours to standard, clear the screen and point the customer character set back to the standard ROM characters. Is there a best practice around termination and "garbage collection"? For example my instinct is to try and call a soft reset. I've found threads about NMI and resets - could someone maybe share a code sample as interrupt disabling etc is a bit advanced for me yet.
Many thanks
Martin
In my first project when I want the program to end, I reset the screen colours to standard, clear the screen and point the customer character set back to the standard ROM characters. Is there a best practice around termination and "garbage collection"? For example my instinct is to try and call a soft reset. I've found threads about NMI and resets - could someone maybe share a code sample as interrupt disabling etc is a bit advanced for me yet.
Many thanks
Martin