No worries!
It's a pretty small chapter so you should read it thoroughly to "grok it".
For using macros in LE code you need to use a different technique that
uses a static function:
inline double timeused() {
uint64_t mics = 0;
__asm(" IEABRCX DEFINE \n"
" TIMEUSED STORADR=%0,ECT=YES \n"
: "=m"(mics) : : "r0", "r1", "r14", "r15");
return (double)(mics >> 12) / 1000000;
}
static void generate_dsects(void) {
__asm(" CVT DSECT=YES\n"
" IHAECVT\n"
: : : );
}
On 2020-04-28 7:27 PM, Joseph Reichman wrote:
I really spent about an hour looking in the language guide prof and used mainly
in metal c as I thought the topic related
Particularly to that
Thanks
On Apr 27, 2020, at 10:16 PM, David Crayford <[email protected]> wrote:
Joe,
You really do need to learn how to read the manuals instead of posting here so
someone else can do it for you!
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ccrug00/insert-asm.htm
On 28 Apr 2020, at 4:23 am, Joseph Reichman <[email protected]> wrote:
Hi
I am trying insert assembler code (a macro) in a Metal C program that's has
literal copybook for constants and a dsect
I am assuming for the DSECT I would have to do something like @@AUTO@1 DSECT
followed by ORG @@AUTO@1+X'NNNN' after the last stack variable copy my dsect
variables
For the constants I would do ORG @@LIT@1+X'NNN' after the last constant and
then point back LOCTR to the next NSI
I am wondering if anyone has done this and can give my some tips
Thanks
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN