Advertisement
Guest User

C64 "Hello World!" burte force

a guest
Apr 30th, 2018
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         *= $1000
  2.         JSR setup
  3. loop    LDA $D41B       ; load random
  4.         STA $0400,X     ; print character
  5.         CMP msg,X       ; check character
  6.         BNE loop        ; repeat
  7.         INX             ; advance cursor
  8.         CPX #$0C        
  9.         BEQ stop        ; stop at the end of the string
  10.         JMP loop
  11. stop    JMP stop
  12. setup   LDA #$F0        
  13.         STA $D40E       ; set voice 3 frequency (LSB)
  14.         LDA #$00
  15.         STA $D40F       ; set voice 3 frequency (MSB)
  16.         LDA #$80
  17.         STA $D412       ; set voice 3 noise
  18.         JSR $e544       ; clear screen
  19.         LDA #$02        
  20.         ORA $D018
  21.         STA $D018       ; change charset
  22.         LDX #$00
  23.         RTS
  24. msg     text "hello world!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement