Skip to content

Instantly share code, notes, and snippets.

@p-a
Created November 13, 2014 23:02
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 p-a/38abcb0091019743d55a to your computer and use it in GitHub Desktop.
Save p-a/38abcb0091019743d55a to your computer and use it in GitHub Desktop.
Stable raster without I/O
.pc = $0900
main:
sei
ldx #1
txs
outer:
ldx #24
badline:
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
clc
rmw:
dec $0420
ldy #85
!:
dey
bpl !-
dex
bpl badline
ldy #312-25*8
tsx
bne inc_s
lda #$d0
sta rmw+2,x
bne skip_14
inc_s:
pla
bcc skip_12
waste:
cmp ($00,x)
cmp ($00,x)
skip_12:
nop
skip_14:
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
cmp ($00,x)
dey
beq outer
bne waste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment