This will go over the jump (JMP) command and how to use it to jump your program to an address.
Jumping
JMP takes a 16-bit number as an argument (this CAN be an address using $, see "Headers").
For example to jump to the first line in a program run
JMP 0000000000000000
This works because JMP jumps to the argument you give it + where the program is stored.
To jump to a space defined by a value in ram, do
JMP $0000000000000000
which would in this example jump to a 16-bit value defined in memory at $00000000 and $00000001 in the zero page.
You could also do
JMP A
(with A, X, or Y)Â
but this is not recommended as you will only be able to jump to the first 256 lines of your code with this technique.
To jump to a header you could also just JMH <header-8bit-number>