library(c64asm)
asm <- '
*=$0801
.byte $0c, $08, $0a, $00, $9e, $20
.byte $32, $30, $38, $30, $00, $00
.byte $00
border = $d020 ; use a variable/symbol for the border colour memory loation
*=$0820
lda #$93 ; Clear the screen
jsr $ffd2
loop
inc border ; increment the memory location responsible for border colour
crap
inc {border + 1} ; increase the memory location at `border+1` i.e. $d021 (screen colour)
dec {border + 1} ; decrease it
jmp {.* + 6} ; skip 6 bytes ahead from the start of this line
nop
nop
nop
jmp {crap - 3} ; jmp to the location 3 bytes before `crap` i.e. `loop`
'