Skip to navigation

Lander on the Acorn Archimedes

Main loop: EndGame

Name: EndGame [Show more] Type: Subroutine Category: Main loop Summary: Finish the game
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop calls EndGame
.EndGame MOV R0, #126 \ Call OS_Byte 126 to acknowledge the escape SWI OS_Byte \ condition caused by the player pressing \ Escape in the main loop MOV R0, #22 \ Change to screen mode 0 SWI OS_WriteC MOV R0, #0 SWI OS_WriteC MOV R0, #4 \ Call OS_Byte 4 to set the cursor keys to MOV R1, #0 \ move the cursor, so they work normally MOV R2, #0 \ again SWI OS_Byte