Skip to navigation


Drawing the screen: SetNewViewType

[NES version, Bank 0]

Name: SetNewViewType [Show more] Type: Subroutine Category: Drawing the screen Summary: Clear the screen, set the current view type and move the cursor to row 0
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * EQSHP calls SetNewViewType * STATUS calls SetNewViewType * TT167 calls SetNewViewType * TT213 calls SetNewViewType * TT25 calls SetNewViewType

Arguments: A The type of the new current view (see QQ11 for a list of view types)
.SetNewViewType JSR TT66 ; Clear the screen and set the current view type to A LDA #0 ; Move the text cursor to row 0 STA YC RTS ; Return from the subroutine