Created
November 13, 2014 23:02
-
-
Save p-a/38abcb0091019743d55a to your computer and use it in GitHub Desktop.
Stable raster without I/O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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