Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!tahoe!jimi!arrakis!alfter From: alfter@nevada.edu (SCOTT ALFTER) Newsgroups: comp.sys.apple2 Subject: Re: ML subroutines (passing parameters in ML) Message-ID: <1991Apr30.170428.17156@nevada.edu> Date: 30 Apr 91 17:04:28 GMT References: <3397@kluge.fiu.edu> <13845@ucrmath.ucr.edu> <1991Apr29.203359.250@...!asuvax!gtephx> Sender: news@nevada.edu (News Administrator) Organization: University of Nevada, System Computing Services Lines: 14 In article <1991Apr29.203359.250@...!asuvax!gtephx> campbellb@...!asuvax!gtephx (Brian Campbell) writes: >I thought that the 65816 had a stack addressing mode that allows one to >"random" access values on the stack (which is not present >on the 6502). It looks like this: (i,S) which I take to mean, access the >word at offset i relative to the Stack pointer. Not present on the 6502? You could always do a TSX followed by a LDA $100,X to do that. (Want even more random access? The stack is in a fixed location; just grab a byte anywhere from $100 to $1FF.) Scott Alfter-----------------------------_/_---------------------------- Call the Skunk Works BBS (702) 896-2676 / v \ 6 PM-6 AM 300/1200/2400 Internet: alfter@uns-helios.nevada.edu ( ( Apple II: GEnie: S.ALFTER \_^_/ the power to be your best!