On Sun, 28 Oct 2012 08:22:40 -0500, John McKown wrote: >I don't have the C compiler, but that code looks to me like a function >call. That is, the C compiler is interpreting the line as a normal >invocation of the "_asm" subroutine. Do you need a special compiler >option, such as GENASM, for the compiler to recognize _asm as something >special? > What does ':' mean to (Metal) C? I'm familiar with it only in conditional expressions such as "b ? x : y". And the "x" seems to indicate a function call, but the preceding text doesn't seem to be a valid function name. >Also, when I cut'n'paste from this page: > >http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbclr1b0/7.8.2 > >The pasted code has two leading underscore characters > >__asm("x DC F'0' ":"XL:DS:4"(x)); > >You are only showing one leading _ in your message. > Many years ago, I submitted an RCF on a similar occurrence in another manual. Pubs explained, in a rejection, that in the proportional type face used in the manual, a solitary underscore was nearly invisible, so they doubled it for legibility.
Morons. Couldn't they have used a monospaced font for code examples? Or an underscored em-space? (That might also fail when copied and pasted into program source, but in a more timely manner.) Æsthetics shouldn't so trump technical correctness. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
