Assume that any system macro expanding to a PC or an SVC will clobber R15-R1.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf 
of Charles Mills [charl...@mcn.org]
Sent: Wednesday, January 26, 2022 4:35 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Debugging Assembler Rexx programs

I'm just lazy. Rather than look up SNAP I just used DC H'0'. I seem to recall 
that SNAP clobbers a couple of registers but I could be wrong on that.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On 
Behalf Of Abe Kornelis
Sent: Wednesday, January 26, 2022 11:38 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Debugging Assembler Rexx programs

Charles,

I've used SNAP dumps extensively - but never in a program called from REXX.
Is there a reason you left it out of your list of options?
I used to like very much the ultra-short snaps with just PSW and
register dump.

Kind regards,
Abe
===


Op 26/01/2022 om 18:32 schreef Charles Mills:
> I have a fair amount of experience writing assembler and calling it from Rexx.
>
> Is your problem with "getting going" -- the linkage and that sort of thing -- 
> or some logic problem in your assembler once you get going?
>
> You might try writing the world's simplest assembler program first -- maybe 
> just do nothing except survive the call and return successfully. Get that 
> working.
>
> Then enhance it to return 'Hello, World!" in the result area. SAY it from 
> your calling Rexx to make sure you got it right.
>
> And then move forward one step at a time.
>
> You have two "non-debugger" options for debugging:
>
> 1. WTO's. Good especially for tracing how far you got in your logic.
> 2. The old DC H'0' and debug from the dump.
>
> Charles
>
>
> -----Original Message-----
> From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] 
> On Behalf Of Joseph Reichman
> Sent: Wednesday, January 26, 2022 8:35 AM
> To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
> Subject: Re: Debugging Assembler Rexx programs
>
> The copy book is assembler
> It tells me the name of the variable it’s length
> And it’s offset which would be it’s value
>
> I have one Simple question
>
> This url
>
> https://secure-web.cisco.com/1UquAMCyEUPJhSwj3D2K6mMWzklK5vQ7W8h1UgBkOBeY8TCNAS1ULsCPrnOPHd84cy5sEo45DOaWrMtGJlZj42JpVZzbdSBRBG27Pjj5IG4ZrGUvxeyy5zQlwywEmMl8N3Pk0l4Gcha_s02hBu-_DnpMoRVEAJSf-gKvQCQfpbPIcRVfonOFkPZ5niLbJ6_4OxRmItVi0amiVv-HYM345rFfVs8m_7HLLVnJASIOPdyVWQzjvqFdZC7YR5e153nF3CtqFJLP_4hWs5hEFCIG9mIri4hJCVB_KcWJXLeP9qV6dGCi0Zca4uzx4Ip_TxxcX1edq7U7qCywzGYOMIKJJVa9CwzXjTttkFSTWP8bzcJkXC5VHW7Nx9Q5-V5GuWP7_0M3DoQO2TtPUFAnD-wU4dE1WtZCQebr_dt335MfatXvDHrow2VUPqFxm_ZiOwSdk/https%3A%2F%2Fshare.confex.com%2Fshare%2F115%2Fwebprogram%2FHandout%2FSession7691%2FS7691bla.pdf
>
> Contains what I want to do it says how to write
> The program if the program is extensive
> You have to debug it
>
> The only way to get the Rexx environment
> Block
>
> Address tso
> “Call ‘myloadlib(myprog) passenvb’
> Passenvb populates register 0 with the address of the envblock
>
> How would I debug this program
>
> It tried test ‘mylosdlib(myprog)’ cp
> And used ECTENVBK but now I am getting
>
> A return code invalid language environment
>
>
>
>> On Jan 26, 2022, at 11:16 AM, Paul Gilmartin 
>> <00000014e0e4a59b-dmarc-requ...@listserv.uga.edu> wrote:
>>
>> On Jan 26, 2022, at 08:09:14, Joe Reichman wrote:
>>> Thanks but that would never here at the IRS this place is highly sensitive 
>>> to anything from the outside
>>>
>> It's hard for these fora to help you if:
>>
>> o You can't show the failing code.
>>
>> o You can't accept working examples from outside.
>>
>> Must your solution involve Assembler?  Why not keep the data in a file,
>> read it with Rexx and populate the variables with assignment statements
>> or VALUE()?
>>
>> --
>> gil

Reply via email to