0 Members and 1 Guest are viewing this topic.
.org 0 ;just for clarityblablablablacall label1blablablalabel1: ;say this is the 250th byte of the programblablaret
.org $9d95blablablablablacall label1blablablalabel1: ;say this is the 250th byte of the programblablaret
No, no. The program is copied, but the labels need the correct values, or otherwise the program goes havoc.
EDIT: seeing player's post: I'll summarize: The label resolution is always relative to the program origin. The absolute position therefore is the position relative to the origin+the value of the origin. (that's where .org stands for, btw)
.org $9d93.db $bb,$6dblablabla
.db $bb,$6d.org $9d95blablabla
Where you place the statement has no influence for its value, but it does for the values that follow it. It actually just resets the program counter to the given value in most assemblers.In one of the first lessons of Assembly in 28 days this concept is explained. I am sure I can't do any better than sigma.