SORTL Instruction
-
- New Member
- Posts: 1
- Joined: Wed Jun 22, 2016 12:24 pm
SORTL Instruction
Does anyone have an example of the SORLT instruction? I'm too stupid to understand the definitions in Principles of Operations ....
-
- New Member
- Posts: 6
- Joined: Tue Nov 18, 2014 2:18 pm
Re: SORTL Instruction
Is the instruction spelled correctly, I don't find any reference of in pdf of "Principles of Operations"?
Re: SORTL Instruction
SORTL (opcode 'B938') is a special instruction that calls DFSORT. Per the documentation, it needs at least z version 15 and the facility needs to be enabled. In the Principles the instruction is documented on page 26-96.
Sorting fixed or variable length records requires you to give it a set of parameters. It's a literal block in memory that describes the data structure to be sorted. In the Principles see Figure 26-80 on page 26-101. You will give the memory address of this parameter block as an argument to the SORTL-SFLR/SORTL-SVLR instruction.
If you need to sort something in Assembler, it's probably easier to write a bubble sort algorithm of your own ... ...
link removed ( it is considered bad forum manners to post a link to a competitor forum )
Sorting fixed or variable length records requires you to give it a set of parameters. It's a literal block in memory that describes the data structure to be sorted. In the Principles see Figure 26-80 on page 26-101. You will give the memory address of this parameter block as an argument to the SORTL-SFLR/SORTL-SVLR instruction.
If you need to sort something in Assembler, it's probably easier to write a bubble sort algorithm of your own ... ...
link removed ( it is considered bad forum manners to post a link to a competitor forum )
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute