slot the VICMON cartridge into your VIC20
start VICMON by entering: SYS 24576
- We want to accomplish the following:start program at 1400 and load 0th row coordinate (#$00) into the X register
- load the column coordinate of the left-most screen border (#$00) into the Y register
- load the clear screen character ($93) into the accumulator
- run subroutine ($FFD2) to output the clear screen character ($93) from the accumulator
- load $#00 into the accumulator to ensure all bits are turned off (this will make 6 set position instead of get)
- call the set cursor location (Plot) subroutine at address $FFF0
- load the value for letter W (#$57) into the accumulator
- run subroutine ($FFD2) to output the W character (#$57) from the accumulator to screen
- compare the value in the Y register with the right-most column coordinate (#$15)
- if the comparison was true, then jump to the end of the program (point 13)
- otherwise increment the value in the Y register (INY)
- loop back to clear the screen (point 3)
- end the program
No comments:
Post a Comment