LH    RODD,ARRAYLEN
         LA    RODD,ARRAYFIRST-1(RODD)
         LA    RPTR,ARRAYFIRST
LOOP     LH    REVEN,0(,RPTR)
         ...   
         BXLE RPTR,REVEN,LOOP

where REVEN,RODD is a register pair.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

________________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf 
of Mark <[email protected]>
Sent: Wednesday, May 29, 2024 3:03 PM
To: [email protected]
Subject: BXLE usage assistance

Hello,

I'm writing an exit where I have to scan through an array of variable length 
entries in a table where the format is as below (all the entires are readable 
characters)

First 2 bytes = total length of array in hex
then
2 bytes for length of first entry in hex
First Entry in table
2 bytes for length of 2nd entry in hex
2nd entry in table
2 bytes for length of 3rd entry in hex
3rd entry in table.
repeats until end of array.

I'm thinking a BXLE will work, but getting stuck on exactly how to code it.  
any help is greatly appriciated.

Thanks,
Mark.
.

Reply via email to