Skip to content

Commit da740a1

Browse files
committed
hblvbl.s: improve comments
1 parent 5a5e4b1 commit da740a1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

intro/hblvbl.s

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ restorepalette:
5050

5151
install:
5252
move.l #hbl,$120
53-
or.b #1,$fffffa07.w ;enable Timer B
54-
or.b #1,$fffffa13.w
53+
or.b #1,$fffffa07.w ; enable Timer B
54+
or.b #1,$fffffa13.w ; Interrupt mask
5555
move.l $70,oldvbl+2
5656
move.l #vbl,$70
5757
move.b #0,$fffffa1b.w ;Timer B stop
@@ -70,11 +70,11 @@ vbl:
7070
sub.b count,d0
7171
move.b d0,count2
7272
move.l (sp)+,d0
73-
move.b #0,$fffffa1b.w ;Timer stop
73+
move.b #0,$fffffa1b.w ;Timer B stop
7474
cmpi.b #100,count
7575
bge.s .allscreen
76-
move.b count,$fffffa21.w ;Counter value
77-
move.b #8,$fffffa1b.w ;Timer start
76+
move.b count,$fffffa21.w ;Timer B data : Counter value
77+
move.b #8,$fffffa1b.w ;Timer B start : Event count mode
7878
addq.b #1,count
7979
.allscreen:
8080
; move.w #$0FFF,$FFFF8240 ; white
@@ -92,10 +92,10 @@ hbl:
9292
dbra d0,.cpyloop
9393
movem.l (sp)+,d0/a0-a1
9494
move.l #hbl2,$120
95-
move.b #0,$fffffa1b.w ;Timer stop
96-
move.b count2,$fffffa21.w ;Counter value
97-
move.b #8,$fffffa1b.w ;Timer start
98-
bclr #0,$fffffa0f.w ; acknowledge interrupt
95+
move.b #0,$fffffa1b.w ;Timer B stop
96+
move.b count2,$fffffa21.w ;Timer B data : Counter value
97+
move.b #8,$fffffa1b.w ;Timer B start : Event count mode
98+
bclr #0,$fffffa0f.w ; acknowledge interrupt Timer B
9999
rte
100100

101101
hbl2:
@@ -110,7 +110,7 @@ hbl2:
110110
move.l d0,$FFFF8258.w ; " 12 & 13
111111
move.l d0,$FFFF825c.w ; " 14 & 15
112112
move.l (sp)+,d0
113-
bclr #0,$fffffa0f.w ; acknowledge interrupt
113+
bclr #0,$fffffa0f.w ; acknowledge interrupt Timer B
114114
rte
115115

116116
; ---- data section

0 commit comments

Comments
 (0)