summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 13:04:28 -0600
committerskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 13:04:28 -0600
commit47e78a492384900a08eba8acdf20b3187405654a (patch)
tree9e8259901f685a02a56e7f9e02d8a9349b291fdb /src
parent1454769868c3a18126509da4075b29df581901e0 (diff)
downloadztop-47e78a492384900a08eba8acdf20b3187405654a.tar.gz
zvslist: WKAREA needs doubled parens for a register
With WKAREA=(4,5) the macro reads 4 as an address constant and stores its control block at address 12, which is a 0C4.
Diffstat (limited to 'src')
-rw-r--r--src/zvslist.s12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/zvslist.s b/src/zvslist.s
index 6cab3ef..92afcfc 100644
--- a/src/zvslist.s
+++ b/src/zvslist.s
@@ -19,6 +19,10 @@
* and the first store into it takes a 0C4. Only the base register and
* the literal pool stay here, and both are read-only.
*
+* VSMLIST writes its control block into the first 32 bytes of the work
+* area and needs the register operand in doubled parentheses: with
+* WKAREA=(4,5) the macro generates "LA 1,4" and stores at address 12.
+*
* The offsets below are shared with src/ztop.c and checked there.
SYSSTATE AMODE64=NO,ARCHLVL=2,OSREL=ZOSV1R6
zvslist CSECT
@@ -49,13 +53,13 @@ zvslist RMODE 24
CHI 3,4
BE PVT
B OUT
-CSA VSMLIST SP=CSA,WKAREA=(4,5),SPACE=ALLOC,LOC=31
+CSA VSMLIST SP=CSA,WKAREA=((4),5),SPACE=ALLOC,LOC=31
B DONE
-SQA VSMLIST SP=SQA,WKAREA=(4,5),SPACE=ALLOC,LOC=31
+SQA VSMLIST SP=SQA,WKAREA=((4),5),SPACE=ALLOC,LOC=31
B DONE
-LSQA VSMLIST SP=LSQA,WKAREA=(4,5),SPACE=ALLOC,LOC=31
+LSQA VSMLIST SP=LSQA,WKAREA=((4),5),SPACE=ALLOC,LOC=31
B DONE
-PVT VSMLIST SP=PVT,WKAREA=(4,5),SPACE=ALLOC,LOC=31
+PVT VSMLIST SP=PVT,WKAREA=((4),5),SPACE=ALLOC,LOC=31
DONE L 2,16(,13) self, from our save area's block
L 4,8(2) work area
L 15,0(4) service return code