Quote:
Originally Posted by theKbStockpiler
Hi. I want to be able to do simple assembly programming. I have studied some asm and higher level languages in the past but I can't find a definition of a (label) with context.
It just looks to me like a identifier to throw on a line that gives a temporary reference point for the compiler. Why not just use 'line one of code' for the first statement and then use 'line 2 of code' for the second?
|
If you refered to line numbers in code you'd have to update all your markers every time you added or remove a preceding line. A label is a simple way to refer to a place in code that you wish to jump to, whether for a loop or a path selection. They exist in many high level languages as well.