Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!UICVM.UIC.EDU!U23379 From: U23379@UICVM.UIC.EDU (Henry Young) Newsgroups: comp.lang.asm370 Subject: Re: Reading the stack in assembly Message-ID: <9103181935.AA05202@ucbvax.Berkeley.EDU> Date: 18 Mar 91 19:12:45 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 17 >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