Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 200h
- ldx #0d ; clear X register
- ldy #0d ; clear Y register
- NextX *
- lda 0e000h,x ; load E000+X into A register
- cmp #0d ; compare A register to 0
- beq IncY ; if A == 0, IncY
- inx ; increment X
- cpx #0ffh ; compare X to 255
- bne NextX ; if X != 255, NextX
- sty 0275h ; store Y register into 0275
- brk ; end program
- IncY *
- iny ; increment Y
- inx ; increment X
- jmp NextX ; jump to NextX
- end
Advertisement
Add Comment
Please, Sign In to add comment