Ref:  Your note of Thu, 14 Jun 2012 08:24:39 -0700

I like the colon notation (and I've suggested it myself) but I
don't like the idea of implying any specific properties such as
halfword alignment for a label coded with a colon.

As a more general solution, how about letting this notation
define a "deferred label" which will effectively be defined as an
alias name for the next statement which defines a machine
instruction or data item?  This would automatically point to
whatever followed without needing separate alignment.

The exact rules might be a bit tricky; perhaps for example it
might have to be considered an error if the next eligible
statement was not in the same LOCTR or similar, or the label
could alternatively be deferred until the next data or
instruction definition within the same section.  And what would
happen if it were coded at the end of a section - should it be
treated like "label EQU *" or rejected as an error?

Frank Swarbrick writes:
> Personally, I think the assembler should support a feature where it would
> align properly if you specify a label followed by a colon.  For example
>
> EXIT:
>         RETURN (14,12),RC=0

Jonathan Scott
IBM Hursley UK

Reply via email to