Skip to content

Commit e3151ef

Browse files
author
Brian Holdsworth
committed
FIX: xVdcBufswap needed to start with bitmap 0.
1 parent 7103013 commit e3151ef

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cbm/toolx/vdc/core.asm

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,25 +1028,25 @@ xVdcDblBuffer = *
10281028
rts
10291029

10301030
xVdcBufswap = *
1031-
; bmadr1 <- R12/13
1031+
; bmadr0 <- R12/13
10321032
ldx #12
10331033
jsr vdcRead
1034-
sta .bmadr1+1
1034+
sta .bmadr0+1
10351035
ldx #13
10361036
jsr vdcRead
1037-
sta .bmadr1+0
1038-
; R12/13 <- bmadr0
1037+
sta .bmadr0+0
1038+
; R12/13 <- bmadr1
10391039
ldx #12
1040-
lda .bmadr0+1
1040+
lda .bmadr1+1
10411041
jsr vdcWrite
10421042
ldx #13
1043-
lda .bmadr0+0
1044-
jsr vdcWrite
1045-
; bmadr0 <- bmadr1
10461043
lda .bmadr1+0
1047-
ldy .bmadr1+1
1048-
sta .bmadr0+0
1049-
sty .bmadr0+1
1044+
jsr vdcWrite
1045+
; bmadr1 <- bmadr0
1046+
lda .bmadr0+0
1047+
ldy .bmadr0+1
1048+
sta .bmadr1+0
1049+
sty .bmadr1+1
10501050
rts
10511051
}
10521052

0 commit comments

Comments
 (0)