Okay, I'm a little timed right now, but let's see what all I can get done.
So, some of you probably know what labels are, but some don't. They look like this:
IAmALabel:
and are handy ways to jump and call places in memory, or at times just for organization.
What's so handy about them, anyway?
Well, before labels were around, programmers had to figure out the points in memory on their own, and shift them around whenever any new code was added in. So basically you'd have to figure out what call $43 meant, instead of call DoThisAndThat.
Another reason labels are useful, is because of sections. See, a section in WLA DX would be isolated and untouched if it didn't have any labels in it, because that's how the section communicates with other ones. So this:
.section "lfvn sljcnfvglknv" free
.db $44 $44 $44
.ends
Wouldn't mean anything.
Doing this, however:
call Boogie
.section "???" free
Boogie:
.db $44 $44 $44
ret
.ends
Would mean something, since the code inside the section is being accessed.
Well, that's the end of this part. Sorry for its short length, but I'm in a bit of a hurry and if I were to wait then this part would be here 12 hours from now.
Some excellent info you've shared
ReplyDelete