Thanks for the link. With that help, I fixed the bug in the program:
mov $6., -(sp)
mov $1f, -(sp)
mov $1,-(sp)
mov $0,-(sp)
sys 4
add $8., sp
mov $0,-(sp)
mov $0,-(sp)
sys 1
1: <hello>
Sorry, I typed
that in haste without testing. I don’t have a 2.11 system
to try it on. However, reading the source code, I did that wrong. The
args go on the stack, not in line with the code.
mov $6, -(sp)
mov a, -(sp)
mov $1,-(sp)
sys 4
Without suggesting that every helpful post should be tested, I find the
superb
https://unix50.org web emulator excellent for such things.
Many thanks to the folks hosting & maintaining this great resource!