Advertisement
framillo

Untitled

Mar 22nd, 2020
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. * = $c000
  2.  
  3. SetCursor = $E50C ;x=numero riga, y=numero colonna
  4. PrintString = $AB1E ;A con il Byte Basso e il registro Y con il Byte Alto dell’indirizzo
  5. ZP = $fb
  6. ZP2=ZP+1
  7.  
  8. lda #$18
  9. sta ZP2
  10. ldx #0
  11.  
  12. mainloop
  13. ldy #0
  14. jsr SetCursor
  15. jsr PrintRow
  16. inx
  17. dec ZP2
  18. bne mainloop
  19. jmp WaitForSpace
  20.  
  21. PrintRow
  22. stx ZP
  23. lda #<Balls
  24. ldy #>Balls
  25. jsr PrintString
  26. ldx ZP
  27. rts
  28.  
  29. ;==============================================================================
  30. ; Wait for Space bar to be pressed
  31. ;==============================================================================
  32.  
  33. WaitForSpace
  34. lda #$7f ;%01111111 - only row 7 KB matrix
  35. sta $dc00
  36. lda $dc01
  37. and #$10 ;mask %00010000
  38. bne WaitForSpace
  39.  
  40. rts
  41. Balls
  42. text "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ"
  43. byte 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement