💾 Archived View for mirrors.apple2.org.za › archive › www.textfiles.com › apple › ANATOMY › cmdread.… captured on 2024-08-19 at 03:01:52.
View Raw
More Information
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
- :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=*
- NOTE: Normally, execution flows back into Applesoft. When *
- Applesoft picks up a subsequent INPUT or GET statement, *
- data is retrieved from the disk because the READ cmd *
- was exited with OPUTCOND: $00 and CONDFLG: $01. An *
- example of program flow is shown below for an INPUT *
- statement. Our illustrative disassembly begins in *
- Applesoft after it has recognized the INPUT tolen and *
- jumped to the beginning of that routine. Not that *
- this disasseembly is over simplified and not complete. *
- (For instance, it does not include multiple variable *
- input.) Furthermore, it is definitely NOT meant to *
- describe the inner workings of Applesoft. Instead the, *
- intent is merely to provide a specific example of how *
- an INPUT statement becomes interconnected to, and is *
- processed by, those nebulous DOS creatures called *
- condition handlers. Assembly language programmers who *
- use GETLN ($FD6A) to retrieve data from the disk may be *
- particularly interested in the non-Applesoft portions *
- of this disassembly. *
- :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=*
(DBB2)
INPUT CMP #' ' ;Is there an optional input string?
;(Such as in: '100 INPUT "WHAT IS YOUR NAME";A