Advertisement
ktuluisdreaming

C64 test program

Mar 2nd, 2019
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         *= $801
  2.         .block
  3.         .word s, 10
  4.         .byte $9e
  5.         .null "4096"
  6.         s .word 0
  7.         .bend
  8.        
  9.         *= $1000
  10.         lda #$93;ASCII FOR CLEAR
  11.         JSR $FFD2
  12.         ldy #$00
  13.         lda #$00
  14.         sta $00;just store 0 into address
  15.         ldy #$0;remember how much to increment
  16. loop    lda message,x;load the character + x
  17.         and #$3f;convert all letters to uppercase
  18.         sta $0400,y;store on screen starting @ adr. 1024
  19.         inx;increment x to next character
  20.         stx $00
  21.         tya
  22.         clc
  23.         adc $00
  24.         tay
  25.         cpx #$0a;compare x with 11, the length of the text.  BTW no subrout to count letters yet.
  26.         bne loop;go back to loop if comparison is less that 0
  27.         rts
  28.         ;todo: make a triangle thingy, reading more from message each line
  29. ;   for example,
  30. ;       a
  31. ;       ab
  32. ;       abc
  33. ;       abcd
  34.        
  35. message
  36.         .text "aaaaaaaaaa"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement