[comp.lang.asm370] Reading the stack in assembly

YYGQC@CUNYVM.BITNET (03/15/91)

Does anyone out there know how to see how many lines are queued in the stack
(Say from a rexx program or the NAMES command) from an assembler file?
My system's running CMS Rel 5.6 on VM/XA... Also, does anyone have a list
of the different SVC codes, and what they do? I keep looking in the CMS for
programmers guide, and all it says is look in the VM/SP System programmers
guide, which, is not available in my school... Specifically, I need the
things that SVC 203 and Diag instructions do... Thanks...

OPRJ36@TREARN.BITNET (Bahri Bora BALI AG) (03/18/91)

You can get the number of lines in program stack from NUCON (CMS Nucleus
Constants). It's contained by the field 'NUCNLSTK' of NUCON, at storage
location X'D68'.

You can get information about diagnose codes from ListServ at UCF1VM.

-Bahri Bora BALI
 Ege University

U23379@UICVM.UIC.EDU (Henry Young) (03/19/91)

>Does anyone out there know how to see how many lines are queued in the stack
>(Say from a rexx program or the NAMES command) from an assembler file?
>My system's running CMS Rel 5.6 on VM/XA... Also, does anyone have a list
>of the different SVC codes, and what they do? I keep looking in the CMS for
>programmers guide, and all it says is look in the VM/SP System programmers
>guide, which, is not available in my school... Specifically, I need the
>things that SVC 203 and Diag instructions do... Thanks...

Are you refering to the current buffer or all lines that are stacked?  I have
a asm program I wrote a few years back to get the count from the current buffer
if thats what you mean.   I assume for now you want the count of all lines.
You could just issue a SENTRIES command using SVC 202.
The fastest way would be to load the count from the nucon field NUCNLSTK.
Just include the NUCON macro in your source with r0 as your base index and then
L R2,NUCNLSTK.

  - Henry