Skip to content

Commit

Permalink
Require screen offsets to draw upside down #8
Browse files Browse the repository at this point in the history
  • Loading branch information
picosonic committed Jan 1, 2024
1 parent 0c2e539 commit 3fb7412
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions beeb/gfx.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1162,4 +1162,26 @@ PAL_DIZZY2 = &02
; TODO

RTS
}

; Lookup table for start of each line of the screen in memory
;
; high bytes are : 50,50,50,50,50,50,50,50 52,52,52,52,52,52,52,52...
; low bytes are : 00,01,02,03,04,05,06,07 00,01,02,03,04,05,06,07...
ALIGN &100
.screentable_hi
{
FOR n, 0, (MAXY-1)/8
FOR m, 0, 7
EQUB HI((MODE8BASE)+(n*512)+m)
NEXT
NEXT
}
.screentable_lo
{
FOR n, 0, (MAXY-1)/8
FOR m, 0, 7
EQUB LO((MODE8BASE)+(n*512)+m)
NEXT
NEXT
}

0 comments on commit 3fb7412

Please sign in to comment.