Sunday, September 8, 2019

VIC20-ASM-001 Clear Screen


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 the clear screen character ($93) into the accumulator
  • run subroutine  ($FFD2) to output the clear screen character ($93) from the accumulator
  • end the program


.A 1400 LDA #$93
.A 1402 JSR $FFD2
.A 1405 BRK
.A 1406




test the program from VICMON by entering: .G 1400

the result will be a clear basic screen with the VICMON information (because we are still running it)

place a clean cassette into the datasette
save the program to tape by entering: .S "CLEARSCREEN",01,1400,1406

press record & play on the datasette as required

when saving is completed, reset your VIC20
rewind cassette
load the program in BASIC by entering: LOAD "CLEARSCREEN"

press play on the datasette. The VIC20 will now be SEARCHING FOR CLEARSCREEN
when CLEARSCREEN is found, the screen will prompt "READY"


run the program by typing: "SYS 5120"

the result will be a cleared BASIC screen

CONGRATULATIONS!

No comments:

Post a Comment