Skip to navigation

Elite on the BBC Micro

Utility routines: LYN [Electron version]

Name: LYN [Show more] Type: Subroutine Category: Utility routines Summary: Clear most of a row of pixels
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * CLYNS calls LYN * TTX66 calls LYN

Zero memory from page X to page &75 (inclusive). Arguments: X The page of screen memory from which to start clearing
.LYN JSR ZES1 \ Call ZES1 to zero-fill the page in X INX \ Increment X to point to the next page in memory CPX #&76 \ Loop back to zero the next page until we have reached BNE LYN \ page &76 (so page &75 is the last page to be zeroed) RTS \ Return from the subroutine