In <[EMAIL PROTECTED]>, on 05/01/2007
at 11:25 AM, "Patrick O'Keefe" <[EMAIL PROTECTED]> said:
>This calulates the offset of the middle element of a table FSVO
>middle. r2 = table entry length
>r3 = (non-zero) table length
> BXLE R2,R2,* DOUBLE OFFSET UNTIL >TAB SIZE
> SRL R2,1 GET MIDDLE ELEMENT
>It works. It might even be efficient for small tables. But BXLE is
>not an instruction I associate with numerical calculations.
That looks fairly obvious. The code that I had in mind was testing
bits in a 30-bit string.
>And the code came with no comments.
Would you like to borrow my clue-by-four? Please rinse the blood off
after you use it.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html