Re: Address of a =LITERAL

2017-12-10 Thread Robin Vowels
From: "Charles Mills" Sent: Sunday, December 10, 2017 5:15 PM Yeah. Also LARL only works for even addresses. What happens (too lazy to test) if I code LARL R1,=X'012345' and the literal would fall on an odd address? Use ORG appropriately. Is the assembler smart enough to bump it to an even

Re: Address of a =LITERAL

2017-12-10 Thread Paul Gilmartin
On 2017-12-09, at 23:15:41, Charles Mills wrote: > > Seems odd to me that they limited LARL to even addresses. For Branch > Relative it makes sense; for Load Address Relative not so much. > Doesn't that allow twice the range? -- gil

Adcon (was: Address of a Literal)

2017-12-10 Thread Paul Gilmartin
On 2017-12-09, at 15:20:59, John Ehrman wrote: > A literal is implicitly a symbolic address and a constant-generation request; > nesting those functions in other expressions was considered a bit too much > extra work for ASMH, from which HLASM was derived. And there were no strong > requests fo

Re: Adcon (was: Address of a Literal)

2017-12-10 Thread Mike Shaw
Adcons cannot refer to relocatable expressions. On Dec 10, 2017 12:37 PM, "Paul Gilmartin" < 0014e0e4a59b-dmarc-requ...@listserv.uga.edu> wrote: On 2017-12-09, at 15:20:59, John Ehrman wrote: > A literal is implicitly a symbolic address and a constant-generation request; nesting those fun

Re: Adcon (was: Address of a Literal)

2017-12-10 Thread Charles Mills
Sure they can! You most basic A(label) is typically a reference to a relocatable expression. Adcons can't refer to symbols in DSECTs because they don't have an address. Where are they? Wherever you want them to be. Wherever their register points. Charles -Original Message- From: IBM M

Re: Address of a Literal

2017-12-10 Thread Seymour J Metz
Well, macros were omnipresent by the 1960s. When did FAP come along? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Assembler List on behalf of Phil Smith Sent: Saturday, December 9, 2017 6:38 PM To: ASSEMBLER-LIST@listser

Re: Address of a Literal

2017-12-10 Thread Seymour J Metz
PL/I is also character stream oriented, yet PL/I macros make perfect sense. The lack of real macros in C clearly derives from the limited memory on the original DEC platforms. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe

Re: Adcon (was: Address of a Literal)

2017-12-10 Thread Mike Shaw
I know adcons are relocatable in the sense that they are resolved to a virtual storage address when the load module is loaded and executed; I was referring to the second reason listed below in the ASMA032E HLASM error message: ASMA032E Relocatable value or unresolved symbol found when absolute va

Re: Address of a Literal

2017-12-10 Thread Ed Jaffe
On 12/9/2017 3:38 PM, Phil Smith wrote: Of course, so-called "high-level" languages like C should be so lucky as to have the power of assembler macros! Their idea of a "macro" is really quite primitive. Agreed! HLASM macros might very well be the most powerful pre-processor language in existe

Re: Adcon (was: Address of a Literal)

2017-12-10 Thread Robin Vowels
From: "Mike Shaw" Sent: Monday, December 11, 2017 8:31 AM I know adcons are relocatable in the sense that they are resolved to a virtual storage address when the load module is loaded and executed; The value of the actual address is determined at program load time, when the origin of the pro

Re: Address of a Literal

2017-12-10 Thread Robin Vowels
From: "Ed Jaffe" Sent: Monday, December 11, 2017 8:47 AM On 12/9/2017 3:38 PM, Phil Smith wrote: Of course, so-called "high-level" languages like C should be so lucky as to have the power of assembler macros! Their idea of a "macro" is really quite primitive. Agreed! HLASM macros might very