Branch table

2015-10-02 Thread Scott Ford
All: I am building a branch table like this: FUNC DSCL10 FUNCTBL DS 0H DC 'INIT 'A(INIT_DSP) ..etc TBLENT DS F'5' -- LAR4,FUNCTBL

Re: Branch table

2015-10-02 Thread Randy Schafer
You probably meant 'L R14,6(R4)' before the BALR. -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Scott Ford Sent: Friday, October 02, 2015 12:58 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Branch table All: I am building

Re: Branch table

2015-10-02 Thread Tony Thigpen
You forgot to BCTR after the compare fails. Tony Thigpen Randy Schafer wrote on 10/02/2015 02:02 PM: You probably meant 'L R14,6(R4)' before the BALR. -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Scott Ford Sent: Friday,

Re: Branch table

2015-10-02 Thread Ken Huff
LR15,R4 Not R14. Although I would combine that instruction with the LA before it. On Oct 2, 2015 2:13 PM, "Tony Thigpen" wrote: > You forgot to BCTR after the compare fails. > > Tony Thigpen > > Randy Schafer wrote on 10/02/2015 02:02 PM: > >> You probably meant 'L R14,6(R4)' before the B

Re: Branch table

2015-10-02 Thread Ray Mansell
Apart from anything else, your function table entries have problems: This simply will not assemble correctly: DC 'INIT 'A(INIT_DSP) So I assume you probably meant: DC C'INIT ',A(INIT_DSP) Even so, when assembled, this will result in the asse

Re: Branch table

2015-10-02 Thread retired mainframer
> -Original Message- > From: IBM Mainframe Assembler List [mailto:ASSEMBLER- > l...@listserv.uga.edu] On Behalf Of Scott Ford > Sent: Friday, October 02, 2015 10:58 AM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Branch table > > All: > > I am building a branch table like this: > > F

Re: Branch table

2015-10-02 Thread Tony Harminc
On 2 October 2015 at 13:57, Scott Ford wrote: > I am building a branch table like this: > > FUNC DSCL10 > > FUNCTBL DS 0H > DC 'INIT 'A(INIT_DSP) > ..etc > TBLENT DS F'5' > > --

Re: Branch table

2015-10-02 Thread Ray Mansell
On 10/2/2015 14:47, retired mainframer wrote: I assume you meant DC C'INITbb',A(INIT_DISP) It would eliminate typing issues if you changed the first constant to CL10'' In either case, half the time your address constant will be separated from you character co

Re: Branch table

2015-10-02 Thread Scott Ford
All, Really appreciate it, I am prototyping some dataspace code, that can be called.. So i want to make sure my thinking is right or close..Tony I like the above code. Very nice and flexible which I like. On Fri, Oct 2, 2015 at 2:49 PM, Tony Harminc wrote: > On 2 October 2015 at 13:57, Scott Fo

Re: Branch table

2015-10-02 Thread glen herrmannsfeldt
> "Tony Harminc" wrote: (snip) >L R14,R4 (snip) > This sets R14 to the address of the adcon in the entry you just found > in the table (or it would if the above-mentioned boundary alignment > problem wasn't there). You need No, this loads R14 from an address ne

Re: Branch table

2015-10-02 Thread Scott Ford
Tony, Thank you so much Scott ford www.idmworks from my IPAD > On Oct 2, 2015, at 2:11 PM, Tony Thigpen wrote: > > You forgot to BCTR after the compare fails. > > Tony Thigpen > > Randy Schafer wrote on 10/02/2015 02:02 PM: >> You probably meant 'L R14,6(R4)' before the BALR. >> >> ---

Re: Branch table

2015-10-02 Thread Tony Harminc
On 2 October 2015 at 15:53, glen herrmannsfeldt wrote: >> "Tony Harminc" wrote: > (snip) > >>L R14,R4 > > (snip) > >> This sets R14 to the address of the adcon in the entry you just found >> in the table (or it would if the above-mentioned boundary alignment >> probl

Re: Branch table

2015-10-02 Thread Scott Ford
Tony, I don't feel so bad now, my age... Scott ford www.idmworks from my IPAD > On Oct 2, 2015, at 7:28 PM, Tony Harminc wrote: > > On 2 October 2015 at 15:53, glen herrmannsfeldt wrote: >>> "Tony Harminc" wrote: >> (snip) >> >>> L R14,R4 >> >> (snip) >> >>>