From d19cbaeaaff91f2d6209bd64c56f281fdc40a09c Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 16 May 2023 15:15:29 -0400 Subject: [PATCH] mixed: comment the code --- vaporlock/midline_double/sather.s | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/vaporlock/midline_double/sather.s b/vaporlock/midline_double/sather.s index 48810924..ce487ee5 100644 --- a/vaporlock/midline_double/sather.s +++ b/vaporlock/midline_double/sather.s @@ -20,6 +20,10 @@ LORES = $C056 HLINE = $F819 ; LORES HLINE SUBROUTINE ltw: + ;================================== + ; draw lo-res green screen + ;================================== + sta COL40 ; Single-Res Display lda LORES lda #39 ; Fill screen using HLINE @@ -33,13 +37,24 @@ fill: jsr HLINE dex bpl fill + + ;================================== + ; insert text message + ;================================== + ldx #21 ; Insert message msglp: lda MSG,X - ora #$80 + eor #$80 sta $5b1,X ; Message at line 11, position 10 dex bpl msglp + + + ;================================== + ; get exact vblank region + ;================================== + poll1: lda VBLOFF ; Find end of VBL bmi poll1 ; Fall through at VBL @@ -58,6 +73,10 @@ lp17029: nop ; ; 2 bmi lp17029 ; no, slew back ; 2/3 + ;================================== + ; maintain window + ;================================== + ldx #5 ; yes, end VBL is precisely located ; 2 jsr waitx1k ; now wait 5755 cycles for text window ; 5000 ldy #73 ; ; 2 @@ -119,6 +138,6 @@ rts1: rts ; 6 MSG: - .byte 0 ; switch in the black + .byte $80 ; switch in the black .byte "*Little Text Window* "