Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How BXLE instruction works?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Thu May 19, 2005 8:07 pm    Post subject: How BXLE instruction works?
Reply with quote

Hi,
I want to know how BXLE instruction works. Please explain with example.
Back to top
View user's profile Send private message

ajita_aju

New User


Joined: 20 May 2005
Posts: 2

PostPosted: Fri May 20, 2005 5:31 pm    Post subject: Re: How BXLE instruction works?
Reply with quote

BXLE has three parameters.
ex. BXLE 3,4,LOOP
Basics:The first two are registers while the last one is a memory location.
The second operand is an even-odd register pair.
Defn: The instruction stands for Branch on Less than or equal to.
Explanation:
In the given example register 3 should have the contents of an address location and similarly register 5 (hidden in the even-odd register pair) will have contents of an address location. Register 4 will have a value that serves as a count for incrementing.
The contents of register 3 is incremented by the value in register 4 and the result is compared with the contents of register 5. If the result is less than or equal to the contents of register 5 a branch takes place to the location pointed by the third operand (LOOP).
A practical example is where you store the starting address of an array in register 3 and the ending address of the same array in register 5. Considering that each element of the array is of the same lenght, store the length of element in register 4.
Hope this explains.
Back to top
View user's profile Send private message
ajita_aju

New User


Joined: 20 May 2005
Posts: 2

PostPosted: Fri May 20, 2005 5:33 pm    Post subject: Re: How BXLE instruction works?
Reply with quote

Just to add one more point, By contents of an address location, I mean the address itself.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri May 20, 2005 5:45 pm    Post subject: Re: How BXLE instruction works?
Reply with quote

Hi Aju,
Thanks a lot for your clear explanation.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How Adabas works in Mainframe ranujn Java & MQSeries 5 Sat Jun 04, 2016 11:20 am
No new posts Interpret instruction not working in ... spoorni CLIST & REXX 2 Fri Feb 07, 2014 10:22 pm
No new posts Displaying the value set by the EXIT ... Ricardo Viegas CLIST & REXX 12 Tue Dec 03, 2013 5:17 am
No new posts how omit works exacty??? ram_vizag JCL & VSAM 3 Tue Nov 05, 2013 5:17 pm
No new posts Data studio(for zos) instruction manual srilata83 DB2 2 Fri Jan 18, 2013 10:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us