Propeller Manual

Table Of Contents
3: Assembly Language Reference – ORG
Propeller Manual v1.1 · Page 329
When the Toggle code is launched with COGNEW(@Toggle, 0), for example, the code will
properly execute starting with Cog RAM address 0 since all symbol addresses were
calculated from that point. If the
ORG statement had been ORG 1 and the Toggle code was
launched, it would not execute properly because the symbol addresses were calculated from
the wrong reference (1 instead of 0).
A Propeller object may contain multiple instances of the ORG directive, each placed
immediately before a launchable portion of assembly code. However, it is not common to
use
ORG with values other than zero (0) though that may be handy when creating run-time
swappable portions of assembly code.