Xref: utzoo bit.listserv.asm370:235 comp.lang.asm370:843 Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac,att!emory!gatech!psuvax1!psuvm!uicvm!u23379 From: U23379@uicvm.uic.edu (Henry Young) Newsgroups: bit.listserv.asm370,comp.lang.asm370 Subject: Re: Reading the stack in assembly Message-ID: <91077.131245U23379@uicvm.uic.edu> Date: 18 Mar 91 19:12:45 GMT References: <91074.091732YYGQC@CUNYVM.BITNET> Organization: University of Illinois at Chicago 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