]> git.sur5r.net Git - cc65/blobdiff - libsrc/pce/clrscr.s
Fixed and improved some pce comments.
[cc65] / libsrc / pce / clrscr.s
index 6ca12549ae6f2386e8fa2844f8c0731721cf7250..907a78899b73fe46a91fe00a5034e52f0ea6567f 100644 (file)
@@ -1,3 +1,9 @@
+;
+; Clear (erase) the screen.
+;
+; Support the full 128- x 64-tile background.
+;
+
         .export         _clrscr
 
         .import         plot
@@ -15,9 +21,9 @@ _clrscr:
 rowloop:
         ldx     #$80
 colloop:
-        lda     #' '
+        lda     #' '            ; low byte of char. index
         sta     VDC_DATA_LO
-        lda     #$02
+        lda     #$02            ; background color, high nybble of char. index
         sta     VDC_DATA_HI
 
         dex