Skip to navigation


Missions: PAS1

[NES version, Bank 0]

Name: PAS1 [Show more] Type: Subroutine Category: Missions Summary: Display a rotating ship at space coordinates (0, 100, 256) and scan the controllers
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * PAS1_b0 calls PAS1
.PAS1 LDA #100 ; Set y_lo = 100 STA INWK+3 LDA #0 ; Set x_lo = 0 STA INWK STA INWK+6 ; Set z_lo = 0 LDA #2 ; Set z_hi = 1, so (z_hi z_lo) = 256 STA INWK+7 JSR DrawShipInBitplane ; Flip the drawing bitplane and draw the current ship in ; the newly flipped bitplane INC MCNT ; Increment the main loop counter JMP MVEIT ; Call MVEIT to move and rotate the ship in space, ; returning from the subroutine using a tail call JMP SetKeyLogger_b6 ; This instruction is never reached and has no effect ; (it would populate the key logger table with the ; controller button presses)