Skip to content

Instantly share code, notes, and snippets.

@fsphil
Created August 13, 2019 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fsphil/05deaa06804b9b2054260b616cafed4b to your computer and use it in GitHub Desktop.
Save fsphil/05deaa06804b9b2054260b616cafed4b to your computer and use it in GitHub Desktop.
33 byte X
ov = $90 ; == $40, initial value for the overflow counter
ct = $D5 ; == $27 / 39, number of passes. Decrementing, finished at -1
sp = $D1 ; == $07C0, pointer to the bottom line (only set after scolling)
* = $02E5
scroll: jsr $E8EA
loop: ldy ct
lda #$A0
sta $D020, y
p1: sta $07C0
sta (sp), y
inc p1 + 1
adc ov
sta ov
dec ct
bmi *
bcc loop
jmp scroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment