It all depends upon what you mean by "size." The hub size will be different from the cog size if there are res pseudo-ops. In any event, the labels at start and end will give you the hub size from Spin (and the cog size from PASM, unless you have multiple orgs).
return (@end - @start) will give you the hub size of the DAT section in bytes, assuming end is the label of the long after the last long in the DAT section. If it's the label of the last long, just add four.
Comments
-Phil
return (@end - @start)
What about:
return constant(@end - @start)
CON
DAT_LENGTH = (end - start)
This doesn't seem to compile. But, would be cool if it did.
Plus 3 4. Assuming start and end are longs.
Edit: Phil's right, you'd add four.
-Phil