Skip to content

Commit

Permalink
comments added to explain what the demo is doing
Browse files Browse the repository at this point in the history
  • Loading branch information
abathur8bit committed Mar 18, 2018
1 parent eac5e03 commit d2a388b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basic/clear.bas
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 REM DEMO SHOWING THE SPEED OF BASIC FILLING THE SCREEN VS ASSEMBLY
5 GOSUB 1000
10 CLS : PRINT @32*8,"FILLING SCREEN VIA BASIC"
15 TIMER=0
Expand All @@ -12,6 +13,7 @@
90 T=TIMER
100 PRINT "ASSEMBLY TOOK ";T
110 END
990 REM ASSEMBLY CODE THAT GETS POKED INTO MEMORY
1000 P=&HE00 : RESTORE
1005 READ A
1010 IF A <> 255 THEN POKE P,A : ?"POKED ";P,A : P=P+1 : GOTO 1005
Expand Down

0 comments on commit d2a388b

Please sign in to comment.