.view19 LDA view3+1 \ Modify the instruction at view20 to use the low byte STA view20+1 \ of the address from view3 \ \ In part 2 we modified the instruction at view3 to \ revert the specified instruction back to STA (P),Y, \ ready for a loop-back that never happened, so view20 \ will now revert this change instead LDA view8+1 \ Modify the instruction at view21 to use the low byte STA view21+1 \ of the address from view8 \ \ In part 3 we modified the instruction at view8 to \ revert the specified instruction back to STA (P),Y, \ ready for a loop-back that never happened, so view21 \ will now revert this change instead LDA view14+1 \ Modify the instruction at view22 to use the low byte STA view22+1 \ of the address from view14 \ \ In part 3 we modified the instruction at view14 to \ revert the specified instruction back to STA (P),Y, \ ready for a loop-back that never happened, so view22 \ will now revert this change instead LDA #&91 \ Set A to the opcode for the STA (P),Y instruction .view20 STA DrawTrackBytes+15 \ Revert the instruction that view3 would have reverted .view21 STA DrawTrackBytes+15 \ Revert the instruction that view8 would have reverted .view22 STA byte2+15 \ Revert the instruction that view14 would have reverted LDA #&E0 \ Set A to the opcode for the CPX #44 instruction STA byte3 \ Revert the instruction at byte3 to CPX #44 RTS \ Return from the subroutineName: DrawTrackView (Part 4 of 4) [Show more] Type: Subroutine Category: Screen buffer Summary: Revert all the code modifications made by the DrawTrackView routine Deep dive: Drawing around the dashboard Drawing the track viewContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
[X]
Subroutine DrawTrackBytes (Part 1 of 3) (category: Screen buffer)
Draw the pixel bytes that make up the track view (0 to 15)
[X]
Entry point byte2 in subroutine DrawTrackBytes (Part 2 of 3) (category: Screen buffer)
Only draw pixel bytes 26 to 39
[X]
Label byte3 in subroutine DrawTrackBytes (Part 2 of 3)
[X]
Label view14 in subroutine DrawTrackView (Part 3 of 4)
[X]
Label view20 is local to this routine
[X]
Label view21 is local to this routine
[X]
Label view22 is local to this routine
[X]
Label view3 in subroutine DrawTrackView (Part 2 of 4)
[X]
Label view8 in subroutine DrawTrackView (Part 3 of 4)