Content originally posted in LPCWare by MikeSimmonds on Sat Feb 02 17:11:21 MST 2013
[FONT=Tahoma][SIZE=2]Clyde, I accept you statement about the use of .word, etc. in bss sections
I have no time to setup a test case and no reason to doubt what you say.
However, I suggest that this is bad practice as a casual glance at such source
files can easily be missunderstood as per my original comment.
The consistent use of '.space xxx' is, to my way of thinking, self documenting and
should never cause confusion on quick scanning of your source files.
Personally, I would rewrite your example as this:
[/SIZE][/FONT][FONT=Tahoma][SIZE=2].bss
ABASE:
NBASE: .space 4 ; one uninitialised word allocated, both labels have the same address
[/SIZE][/FONT][FONT=Tahoma][SIZE=2]
Cheers, Mike
[/SIZE][/FONT][FONT=Tahoma][SIZE=2]
[/SIZE][/FONT]