Tutorial 1

Tutorial 1

Ok, so you know how to change the border colour in basic ?

Poke 53280,1 

(puts the colour for white (1) into memory location 53280)

In assembler, this would be :

lda #1         Load the 'a' register with the value 1
sta $d020      Store the 'a' register in $d020

(puts the colour for white (1) into memory location $d020)

So, you are probably thinking, where has this $d020 number come from ?

Well If you convert the decimal number 53280, into hexdecimal, you will get $d020 !