What would you expect when you assembled this, assuming I counted commas
correctly?
R0 EQU 0
GR0 EQU 0,,,,GR
LA 0,5
LA R0,5
LA GR0,5
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
________________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf
of Paul Gilmartin <[email protected]>
Sent: Wednesday, September 3, 2025 12:27 PM
To: [email protected] <[email protected]>
Subject: Re: Using (0) to suppress alignment checks in HLASM
External Message: Use Caution
On 9/2/25 20:27, Steve Smith wrote:
> ...
>It's just solipsistic to say the machine "considers"> register 0 to be 0. The
>language in the PoOp is more like you cannot use
> register 0 for addressing in most cases.
> ...
"the machine" operates only on the value of the four
bits in the register field. The assembler, however,
can operate differently depending on whether the field
is left empty or an explicit 0 appears.
The assembler could even differentiate between a literal
0 and a symbol EQUated to 0. I hope it doesn't.
"solipsistic"? Perhaps you mean "anthropomorphism"?
--
gil