💾 Archived View for spam.works › mirrors › textfiles › apple › ANATOMY › cmdread.2.txt captured on 2023-06-16 at 21:11:13.
View Raw
More Information
-=-=-=-=-=-=-
- :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=*
- 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