David Staudacher added a great comment about the “standard” entry code I posted. His assembly listing was mangled by the WordPress comment handler. I’m including an image of what he had in mind here.
<
Staudacher Comment Posted
Filed under IBM Mainframe Assembler
Another way of getting your load point into a register is to use
LARL Rx,
Yes it is a 6 byte instruction, but this will work in all addressing modes (when you receive control in AMODE 64, R15 does NOT have your entry point address)
And further more, if you have GOFF enabled, then LARL (and all the other branch relative immediate instructions) can refer to externals – the binder will update the immediate operand for you.
Great idea! I’ll add it to some of the Visiblez programs