Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!maverick.ksu.ksu.edu!hoss!hoss.unl.edu!greg From: greg@hoss.unl.edu (Hammer) Newsgroups: comp.sys.apple2 Subject: Re: Deferred and Immediate mode Message-ID: <1990Jul31.015923.11568@hoss.unl.edu> Date: 31 Jul 90 01:59:23 GMT References: <43444@apple.Apple.COM> Sender: news@hoss.unl.edu (Network News Administer) Distribution: comp.sys.apple2 Organization: University of Nebraska, Lincoln Lines: 41 In article <43444@apple.Apple.COM> dlyons@Apple.COM (David A. Lyons) writes: >In article chin@ankh.ankh.ftl.fl.us (Albert Chin) writes: >>How can you tell if the Apple II is running in deferred (while a program is >>running) or immediate mode. I would like to create a program that only >>runs in immedate mode and not in deferred mode. >> >>thanks, >> >>albert chin ... mthvax!mamia!albert > >Please explain what you're looking for. Are you talking about Applesoft >BASIC? That's the only place I've seen the terms "immediate" and "deferred" >used. > >If that's what you're trying to detect, I believe you have to check both >$76 (high byte of current line number) and $32 (prompt). If $76=$FF or >$32="]", you're in Applesoft immediate mode. If that is what he means, then a program that only runs in immediate mode would be a TXT file which is meant to be EXECed. Unfortunately, in immediate mode, you don't have any real goto/gosub statements, input statements, or ProDOS open statements. I'm not sure what else you won't be able to use, but those pop to mind. >-- >David A. Lyons, Apple Computer, Inc. | DAL Systems >Apple II Developer Technical Support | P.O. Box 875 >America Online: Dave Lyons | Cupertino, CA 95015-0875 >GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 >Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons > >My opinions are my own, not Apple's. __ ___________ __ /_/\/_/_______\_\/\_\ \ \_\ \__ __/ /_/ / \ __ \ | | / __ / \_\/\_\|_|/_/\/_/ / /_/ /| |\ \_\ \ /greg@hoss.unl.edu\ /_/ /_/_______\_\ \_\