Assembler-Example
From C64-Wiki
; This program rapidly updates the colors
; of the screen and the border.
*=$c000 ; starting address of the program
SCREEN = $d021
BORDER = $d020
start inc SCREEN ; increase screen colour
inc BORDER ; increase border colour
jmp start ; repeat
You can run this by typing SYS 49152 from BASIC. (The number 49152 equals C000 hexadecimal, the starting address of this example code.)
