Re: NESTED SUBROUTINES
I taught myself IBM DOS/VS Assembler using the famous "Sharon K Tuggle" book and a whole IBM 370 to myself ;-) We didn't have energy problems back then.
That book has a whole section on saving
By
Steve Shepherd
·
#354
·
|
Re: NESTED SUBROUTINES
https://archive.org/details/programmingassem0000abel/page/323/mode/1up?view=theater
Here's a link to the book. Note you have to "borrow" it to look in it, but
this is the link to the
By
Bob Flanders
·
#353
·
|
Re: NESTED SUBROUTINES
Gary wrote:
I'm sure it is. But isn't S/370 Assembler S/370 Assembler? Wouldn't a third edition be just as good or even BETTER than an older first or second edition? (as long as you're not a book
By
Fish Fish
·
#352
·
|
Re: NESTED SUBROUTINES
Tom Chandler wrote:
Ah. Yes. Those. You're right: that was me.
But unfortunately I don't see any macros in either .zip file that would provide the functionality you need.
But it looks like you got
By
Fish Fish
·
#351
·
|
Re: NESTED SUBROUTINES
Fish, Tom,Actually this one is closer to the age of DOS/VS R 34 than the 3rd
By
gdblodgett
·
#350
·
|
Re: NESTED SUBROUTINES
Additional related books:
http://planetmvs.com/hlasm/books.html
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: fish@...
By
Fish Fish
·
#349
·
|
Re: NESTED SUBROUTINES
https://www.amazon.com/Programming-Assembler-Language-IBM-Third/dp/0137289243
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: fish@...
By
Fish Fish
·
#348
·
|
Re: NESTED SUBROUTINES
Thank you for the book reference. I am going to see if I an find it,as
I am trying to learn DOS/VS asm.
/cheers
/tom c
By
Tom Chandler
·
#347
·
|
Re: NESTED SUBROUTINES
Tom,Peter Abel authored a book called, Programming Assembler Language (not to be confused with his book for PC Assembler) that covers what you are looking to do.? The book is primarily oriented
By
gdblodgett
·
#346
·
|
Re: NESTED SUBROUTINES
Thank you to all who responded.? Each response gave me more information.
I now can nest up to 4 levels and I have getting the results that I expect.
I removed the SAVE and RETURN, replaced with
By
Tom Chandler
·
#345
·
|
Re: NESTED SUBROUTINES
It was a zip file in the OLD DOS/VS files area. That was the name of the
file.
along with a file that had $b transits also.
I guessed it was you, but could be wrong.
Sorry
/cheers
tom c.
By
Tom Chandler
·
#344
·
|
Re: NESTED SUBROUTINES
Tom Chandler wrote:
Eh? What "fish-macros" are you referring to?
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: fish@...
By
Fish Fish
·
#343
·
|
Re: NESTED SUBROUTINES
http://bitsavers.org/pdf/ibm/360/dos/GC24-5073-2_DOS_System_Programmers_Guide_Sep71.pdf
page 118 talks about reentrant
By
Bob Flanders
·
#342
·
|
Re: NESTED SUBROUTINES
Not only that, but DOS/VS r 34 didnt follow the OS calling conventions.
Joe
wrote:
By
Joe Monk
·
#341
·
|
Re: NESTED SUBROUTINES
ok, maybe a little progress. Knowing that standard calls
do not work, as you state, means that I have to do my own.
Ok, now for some testing.....
Thank You very much.
cheers
/tom c
wrote:
By
Tom Chandler
·
#340
·
|
Re: NESTED SUBROUTINES
Hi Tom,
You are going to have to implement your own routines. Perhaps check
out how Algol or PL/1 handle subroutine calls. But standard call
routines do not support re-entrant calls.
Rich
By
Richard Cornwell
·
#339
·
|
Re: NESTED SUBROUTINES
Richard,
Thank you for the info. I need to figure out how to implement your
suggestion. I found in the documentation on SAVE an option
SAVE (14,12),,xxxxxxx
where xxxx is a ds 18f area
By
Tom Chandler
·
#338
·
|
Re: NESTED SUBROUTINES
Hi Tom,
Typically 360/370 subroutine calls are done with a what is called a
save area. This is 18 words allocated within the subroutine. On entry
the registers are saved into the previous
By
Richard Cornwell
·
#337
·
|
Re: NESTED SUBROUTINES
Fish,
Thank you for comments.? You confirmed what I thought was the issue.
Looking through the fish-macros, I noticed you have a modified save
macro.? Should I be using that version?
I have written
By
Tom Chandler
·
#336
·
|
EchoParm
Fran Hensler wrote a routine, EchoParm, which allows for the use of
EXEC PARM= .
The program compiles but will not run via DOS/VS rel 34.? It is stated in
the JCL:
Restriction:? This program will
By
Tom Chandler
·
#335
·
|