.SetSpaceViewInNMI STX VIEW ; Set the current space view to X LDA #$00 ; Clear the screen and set the view type in QQ11 to $00 JSR TT66 ; (Space view with no fonts loaded) JSR CopyNameBuffer0To1 ; Copy the contents of nametable buffer 0 to nametable ; buffer LDA #80 ; Tell the PPU to send nametable entries up to tile STA lastNameTile ; 80 * 8 = 640 (i.e. to the end of tile row 19) in both STA lastNameTile+1 ; bitplanes JSR SetupViewInNMI_b3 ; Setup the view and configure the NMI to send both ; bitplanes to the PPU during VBlank ; Fall through into ResetStardust to hide the sprites ; for the stardustName: SetSpaceViewInNMI [Show more] Type: Subroutine Category: Drawing the screen Summary: Change the current space view and configure the NMI to send both bitplanes to the PPU during VBlankContext: See this subroutine in context in the source code References: This subroutine is called as follows: * LOOK1 calls SetSpaceViewInNMI
Arguments: X The space view to set: * 0 = front * 1 = rear * 2 = left * 3 = right * 4 = generating a new space view
[X]
Subroutine CopyNameBuffer0To1 (category: Drawing the screen)
Copy the contents of nametable buffer 0 to nametable buffer 1
[X]
Subroutine SetupViewInNMI_b3 (category: Drawing the screen)
Call the SetupViewInNMI routine in ROM bank 3
[X]
Subroutine TT66 (category: Drawing the screen)
Clear the screen and set the new view type
[X]
Variable lastNameTile in workspace ZP
The number of the last nametable buffer entry to send to the PPU nametable table in the NMI handler for bitplane 0, divided by 8