Page 1 of 1
SORTL Instruction
Posted: Sat Apr 27, 2024 11:29 pm
by HolgerSchuett
Does anyone have an example of the SORLT instruction? I'm too stupid to understand the definitions in Principles of Operations ....
Re: SORTL Instruction
Posted: Sun May 05, 2024 12:22 pm
by Kamel Rana
Is the instruction spelled correctly, I don't find any reference of in pdf of "Principles of Operations"?
Re: SORTL Instruction
Posted: Sat May 25, 2024 7:25 pm
by kapitaali
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 )