1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

dangling spaces

This commit is contained in:
Bob Andrews 2023-10-16 19:26:54 +02:00 committed by GitHub
parent e8e2c9940c
commit 8b13696719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ _ClearScreen:
ldy #0 ldy #0
: sta (dest), y ; Loop unwound by a factor of 8, which means our iny before the branchh : sta (dest), y ; Loop unwound by a factor of 8, which means our iny before the branchh
iny ; will still work as it's on a page crossing boundary. iny ; will still work as it's on a page crossing boundary.
sta (dest), y ; This will avoid most of the overhead of the branch. sta (dest), y ; This will avoid most of the overhead of the branch.
iny iny
sta (dest), y sta (dest), y
@ -264,7 +264,7 @@ _ScrollScreen:
lda (scroll_src),y ; I've unwound the loop to do 8 bytes at a time. Since we're doing full pages lda (scroll_src),y ; I've unwound the loop to do 8 bytes at a time. Since we're doing full pages
sta (scroll_dest),y ; as long as we unwind the loop to do 8 bytes at a time, we know we'll still sta (scroll_dest),y ; as long as we unwind the loop to do 8 bytes at a time, we know we'll still
iny ; do the final increment on a page boundary. iny ; do the final increment on a page boundary.
lda (scroll_src),y lda (scroll_src),y
sta (scroll_dest),y sta (scroll_dest),y
iny iny
@ -330,7 +330,7 @@ partialPageLoop:
; int y = 0; ; int y = 0;
; int err = 0; ; int err = 0;
; ;
; while (x >= y) ; while (x >= y)
; { ; {
; SETPIXEL(x0 + x, y0 + y, val); ; SETPIXEL(x0 + x, y0 + y, val);
; SETPIXEL(x0 + y, y0 + x, val); ; SETPIXEL(x0 + y, y0 + x, val);
@ -340,7 +340,7 @@ partialPageLoop:
; SETPIXEL(x0 - y, y0 - x, val); ; SETPIXEL(x0 - y, y0 - x, val);
; SETPIXEL(x0 + y, y0 - x, val); ; SETPIXEL(x0 + y, y0 - x, val);
; SETPIXEL(x0 + x, y0 - y, val); ; SETPIXEL(x0 + x, y0 - y, val);
; ;
; y++; ; y++;
; err += 1 + 2 * y; ; err += 1 + 2 * y;
; if (2 * (err - x) + 1 > 0) { ; if (2 * (err - x) + 1 > 0) {
@ -517,7 +517,7 @@ doCircle: lda x0 ; Draw the first of 8 symmetric
asl asl
sta temp sta temp
lda yval+1 lda yval+1
rol rol
sta temp+1 sta temp+1
inc temp inc temp
bne :+ bne :+
@ -724,11 +724,11 @@ _DrawChar: sty tempy
jsr _AscToPet jsr _AscToPet
ldy temp2 ldy temp2
asl asl
rol src_hi rol src_hi
asl asl
rol src_hi rol src_hi
asl asl
rol src_hi rol src_hi
clc clc
adc #<_font8x8_basic ; Add the base address of the font table to the offset adc #<_font8x8_basic ; Add the base address of the font table to the offset