Skip to content

Commit

Permalink
Fix NTSC artifact glitches on AppleIIc with original Pi zero
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Nov 26, 2022
1 parent 17ee7b9 commit 1ef3ff8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/capture_line_ntsc_8bpp.S
Expand Up @@ -996,6 +996,9 @@ capture_line_ntsc_sixbits_8bpp_mono_auto:
link_8bpp_mono6:
tst r12, #NTSC_ARTIFACT
beq no_ntsc_sixbits_8bpp_mono_auto

preload_ntsc:

mov r11, #0
WAIT_FOR_PSYNC_EDGE_FAST
NTSC_CAPTURE_BITS_8BPP_MONO_WIDE
Expand Down Expand Up @@ -1068,10 +1071,18 @@ loop_8bpp_mono6_auto_noburst:
bne loop_8bpp_mono6_auto_noburst

pop {r0, pc}

preload_capture_line_ntsc_sixbits_8bpp_mono_auto:

push {lr}
PRELOAD_BITCOUNT
SETUP_DUMMY_PARAMETERS
b capture_line_ntsc_sixbits_8bpp_mono_auto
SKIP_PSYNC_NO_OLD_CPLD_NTSC
ldr r12, =ntsc_status
ldr r12, [r12]
tst r12, #(NTSC_MEDIUM | NTSC_SOFT)
beq preload_ntsc_full
b preload_ntsc

.ltorg

Expand All @@ -1086,6 +1097,9 @@ full_capture_line_ntsc_sixbits_8bpp_mono_auto:
full_link_8bpp_mono6:
tst r12, #NTSC_ARTIFACT
beq no_ntsc_sixbits_8bpp_mono_auto

preload_ntsc_full:

mov r11, #0
WAIT_FOR_PSYNC_EDGE_FAST
NTSC_CAPTURE_BITS_8BPP_MONO_WIDE
Expand Down

0 comments on commit 1ef3ff8

Please sign in to comment.