Just tried this out. As far as I can tell, OPSYN *completely replaces*
the subject mnemonic opcode. Thus:

DC   OPSYN MYDC

ABC  DC:ASM F'1'

results in 'Undefined operation code', which seems a bit like an
oversight or lost opportunity.

Brent Longborough

On 19/01/2013 13:46, Brent Longborough wrote:
> Have I missed something, or is the solution to this fairly simple?
>
> 1. In library member 'DC':
>
>        MACRO
> &NAME  DC    &PARM...
>  ...
>        MEND
>
> 2. In code, to get the DC macro 'in front of' the assembler DC:
>
>        COPY  DC
>
> 3. In the DC macro, use mnemonic tagging to access the assembler DC:
>
> <label> DC:ASM <DC parameters>
>
> If (and only if) mnemonic tagging overrides OPSYN (not clearly defined
> in the book, AFAICS), this could be even simpler:
>
> DC    OPSYN  MYDC
>
> then, within MYDC:
>
> <xxx> DC:ASM <yyy>
>
> Does anyone know if mnemonic tagging overrides OPSYN?
>
>
> Brent Longborough
>
>

Reply via email to