Page 1 of 1

COBOL PASSING PARAMETER TO ASM IN REGISTER 0

PostPosted: Thu Nov 07, 2013 3:20 pm
by rbarnach1
Hi,

How do I pass a parameter from COBOL to an assembler program? In the Assembler called program, it is expecting the data in REGISTER 0.

Thanks in advance.

Regards,

Re: COBOL PASSING PARAMETER TO ASM IN REGISTER 0

PostPosted: Thu Nov 07, 2013 8:12 pm
by dick scherrer
Hello,

In the Assembler called program, it is expecting the data in REGISTER 0.
I suspect it is Not the data . . . I suspect it is the address to the parm(s).

Re: COBOL PASSING PARAMETER TO ASM IN REGISTER 0

PostPosted: Thu Nov 07, 2013 10:44 pm
by chaat
assuming that you're running in a Z/OS environment...

this seems strange in that the common linkage convention is that the parameter list is passed as a list of addresses in REGISTER 1.

I'm pretty sure that COBOL would always use REGISTER 1.

Re: COBOL PASSING PARAMETER TO ASM IN REGISTER 0

PostPosted: Thu Nov 07, 2013 11:16 pm
by dick scherrer
Yes, it does.

Sorry that my original reply was less than clear . . .

d