Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .begin $0A00 ; Start program at 0A00
- define strlen $1A
- define scr $0200
- define up $11
- ; Setup counter colorz
- lda #$FA
- sta $0300
- ; Regular stuff.
- lda #$00
- ldy #$00
- ldx #$00
- ; Clear key inputs
- sta $FF
- ; Jump past bytes into program code.
- jmp start
- test:
- ; 24 bytes
- dcb $1F, $'H', $2F, $'e', $3F, $'l', $4F, $'l', $5F, $'o'
- dcb $6F, $''', $FF, $00, $1F, $'W', $2F, $'o', $3F, $'r', $4F, $'l'
- dcb $5F, $'d', $6F, $'!'
- start:
- ; If y = #Hello then end program.
- nop ; Slow the CPU for a nice slow print effect xD
- lda test, Y
- sta scr, Y
- iny
- cpy #strlen
- beq end
- jmp start
- end:
- ldx $FE
- stx $0301
- lda $FF
- cmp #up
- bne end
- ; End program here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement