Skip to content

Commit

Permalink
another workaround for 8bitworkshop in C-64 FLI (FinalRowPatch)
Browse files Browse the repository at this point in the history
  • Loading branch information
sehugg committed Nov 16, 2023
1 parent 1340ca2 commit cdbbcad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/sync-dithertron.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
DESTPATH=$RSYNC_PATH/dithertron
make distro
rsync --stats -riltz --exclude tmp --chmod=a+rx -e "ssh" index.html ./gen ./images ./lib $DESTPATH/
8 changes: 7 additions & 1 deletion src/export/asm/c64_fli.asm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ UseMultiColorGraphics equ $USE_MULTI_MODE
#if Use8BitWorkshopEmulator
TweakD018 equ -1
TweakD011 equ 7
LastRasterLine equ 201
FinalRowPatch equ 0
#else
TweakD018 equ 1
TweakD011 equ 1
LastRasterLine equ 199
FinalRowPatch equ 1
#endif

Irq0AtRaster equ $2d
Expand Down Expand Up @@ -168,7 +172,7 @@ L0:
lda LookupD011+TweakD011,x
sta $d011 ; force new color DMA
inx ; FLI bug $D800 color = 8 (orange)
cpx #199 ; last rasterline?
cpx #LastRasterLine ; last rasterline?
Ntsc4:
bne L0 ; branches to l0-1 on NTSC for 2 extra cycles per rasterline

Expand Down Expand Up @@ -218,10 +222,12 @@ Start:
; for a 319 instead of 320 pixel count height.
; A fix is welcomed for this issue.

#if FinalRowPatch
lda LookupD011+199
and #$07
ora #$70
sta LookupD011+199
#endif

; The VIC chip doesn't care if ram or rom is
; selected (with an exception), but the IRQs
Expand Down

0 comments on commit cdbbcad

Please sign in to comment.