Your sample assembled fine but abended 0C1. I made some minor mods. Hope you don't mind my pretend German in the comments :)

The biggest problem is trying to use R15 as a base. That gets messed up by OPEN. The other problem is LA instead of L when loading R13 for the return. I mix those up a lot myself.

https://www.mildredbrennan.com/mvs/hello.png

P.S. My wife and I were in München last May. Beautiful city and it was fun trying to understand the language based on a high-school class.

On 9/5/2023 6:19 PM, Bernd Oppolzer wrote:
FWIW:

ChatGPT could have used this ASSEMBLER program, which I posted some years ago to German Wikpedia ... this does not do the addition of two integers, but instead it is a simple Hello World program. In contrast to the program provided by ChatGPT,
it has no errors (I hope) and it will work.

https://de.wikipedia.org/wiki/Liste_von_Hallo-Welt-Programmen/Assembler#IBM-Mainframe-ASSEMBLER

Kind regards

Bernd


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to