BEYOND THE BAUD_

The Textfile Archive / apple / ANATOMY

The Textfile Archive

ANATOMY

This shelf holds 59 files, 2.9 MB in all. Among them: "BRUN Command Handler", "APPEND Command Handler", "BSAVE Command Handler".

59 files in this branch · 2.9 MB

The Files

59 files on this shelf

cmd.brun.bload.txt

69 KB · text

BRUN Command Handler

It opens: The BRUN command handler (CMDBRUN, $A38E) loads a binary * file into memory, resets the I/O hooks to point to DOS and * A file name must be issued with the command. Address, *… The file runs about 995 lines in this copy, 69 KB.

cmd.interpr.s.txt

24 KB · data

A data file from the collection, kept byte for byte as it circulated, 24 KB. Files like this rode along with the programs and boards of the era as working parts, not reading matter.

cmdappnd.txt

64 KB · text

APPEND Command Handler

It opens: The APPEND command is intended to help you lengthen a * pre-exsiting SEQUENTIAL text file. This command opens the * specified file and then locates the end of the file so that a *… The file runs about 809 lines in this copy, 64 KB.

cmdbsave.txt

76 KB · text

BSAVE Command Handler

It opens: The BSAVE Command saves an image of memory as a binary * file on the disk. The portion of memory saved is defined by * the starting address (A-parameter) and the number of bytes to *… The file runs about 1,018 lines in this copy, 76 KB.

cmdcatlg.txt

36 KB · text

CATALOG Command Hanlder

It opens: The CATALOG command displays the volume number and a list * of file information. For each file on the disk, the following * data are printed: lock/unlock symbol, file type code, file *… The file runs about 494 lines in this copy, 36 KB.

cmdchain.txt

60 KB · text

CHAIN Command Handler

It opens: The CHAIN command LOADs and RUNs an INTEGER basic program * without first clearing variables and arrays. It is most often * used to execute as series of programs that can't all fit into *… The file runs about 752 lines in this copy, 60 KB.

cmdclose.txt

35 KB · text

CLOSE Command Handler

It opens: CMDCLOSE ($A2EA) is an extremely versatile routine. Not * only is it entered when the CLOSE command is issued, but it is * also called by many other DOS commands. In addition, it is *… The file runs about 535 lines in this copy, 35 KB.

cmdelete.txt

23 KB · text

DELETE Command Handler

It opens: The DELETE command erases a named file from the disk. * Volume, drive and slot parameters are optional. If the named * file is locked or not present on the disk, an error message *… The file runs about 352 lines in this copy, 23 KB.

cmdexec.2.txt

101 KB · text

Note: Actual EXECing of statements does not occur until

It opens: after the computer returns to BASIC's RESTART routine ($D43C). * When input is requested, execution flows via the DOS hooks * into INPTINCP ($9E81). Here the exec flag is tested and *… The file runs about 1,135 lines in this copy, 101 KB.

cmdexec.txt

38 KB · text

EXEC comand handler

It opens: The EXEC command is one of the most powerful commands in * DOS. Its command handler (CMDEXEC, $A5C6) reads data from a * text file and interprets the information contained in that *… The file runs about 488 lines in this copy, 38 KB.

cmdfp.txt

67 KB · text

FP Command Handler

It opens: The FP command selects the Applesoft language and then * The execution pattern of the coldstart depends on the * kind of machine that is being used. If an old AppleII (with *… The file runs about 884 lines in this copy, 67 KB.

cmdint.txt

10 KB · text

INT Command Handler

It opens: The INT command tries to select the Integer language and * Language selection is done by throwing the appropriate * switches to activate either the language card or motherboard. *… The file runs about 212 lines in this copy, 10 KB.

cmdmxfil.txt

55 KB · text

MAXFILES Command Handler

It opens: The MAXFILES command is used to define the maximum number * of files that can be opened at one time (1 - 16). A default * value of 3 is used for cold starts (i.e. when the disk is *… The file runs about 706 lines in this copy, 55 KB.

cmdopen.txt

45 KB · text

OPEN Command Handler

It opens: The OPEN command prepares a new or pre-existing text file * for subsequent reading or writing. A file is considered to be * opened once it has been assigned a DOS buffer and its first *… The file runs about 613 lines in this copy, 45 KB.

cmdposn.txt

42 KB · text

POSITION Command Handler

It opens: The position command is used to move the file pointer * AHEAD R number of FIELDS from its CURRENT position. The file * pointer is moved ahead by repeatedly reading one byte at a *… The file runs about 575 lines in this copy, 42 KB.

cmdread.2.txt

82 KB · text

NOTE: Normally, execution flows back into Applesoft. When

It opens: 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 *… The file runs about 966 lines in this copy, 82 KB.

cmdread.txt

61 KB · text

READ Command Handler

It opens: The READ command prepares DOS to retrieve data from a * file in response to subsequent INPUT or GET statements. The * command can only be used in the deferred mode. A filename *… The file runs about 799 lines in this copy, 61 KB.

cmdrenam.txt

35 KB · text

RENAME Command Handler

It opens: The RENAME command changes the name of a file on the disk.* Both the old name and a new name must be issued with the * command. Volume, drive and slot parameters are optional. A *… The file runs about 524 lines in this copy, 35 KB.

cmds.load.run.txt

96 KB · text

RUN Command Handler

It opens: DOS's RUN command loads an Integer or Applesoft file and * then attempts to execute it. If the specified file is not on * the disk, a file-not-found error message is printed. If the *… The file runs about 1,470 lines in this copy, 96 KB.

cmdwrite.txt

77 KB · text

WRITE Command Handler

It opens: The WRITE command prepares the computer to send subsequent* output to the disk. The command can only be used in the * deferred mode. R(ecord number) and B(yte offset into record) *… The file runs about 1,109 lines in this copy, 77 KB.

dissassembly.er.txt

63 KB · text

DISASSEMBLY OF ERRORS

It opens: Assembly language programmers should appreciate the fact * that debugging and error trapping a program often requires * considerable more time than simply coding the routines needed *… The file runs about 798 lines in this copy, 63 KB.

doscoldstart.txt

110 KB · text

DOS's coldstart routine

It opens: The DOS cold- and warmstart routines represent the focal * points from which DOS begins processing information. It * therefore seems logical that the novice should launch his trek *… The file runs about 1,348 lines in this copy, 110 KB.

doswarmstart.txt

97 KB · text

DOS's warmstart routine

It opens: The DOS cold- and warmstart routines represent the focal * points from which DOS begins processing information. It * therefore seems logical that the novice should launch his trek *… The file runs about 1,243 lines in this copy, 97 KB.

file.manager.s.txt

30 KB · text

F I L E M A N A G E R

"F I L E M A N A G E R". The file runs about 2,252 lines in this copy, 30 KB.

fn.lock.unlock.txt

44 KB · text

Function Handlers

It opens: The LOCK and UNLOCK function handlers ($ACEF & $ACF6) * set the lock/unlock mask (LOKUNMSK, $B39E) with $80 (lock) * or $00 (unlock) and the call the COMNOPEN routine ($AB28) *… The file runs about 653 lines in this copy, 44 KB.

fncatlog.txt

25 KB · text

CATALOG Function Handler

It opens: This function handler is only called by the CATALOG * command. The overall execution pattern of the function, as * well as several customizing techniques, are described in the *… The file runs about 454 lines in this copy, 25 KB.

fnclose.txt

29 KB · text

CLOSE function handler

It opens: In order to understand the execution pattern of the close * function handler (FNCLOSE, $AC06) you must first be familiar * with the writing process. As a file is being written, data *… The file runs about 507 lines in this copy, 29 KB.

fndelete.txt

64 KB · text

DELETE Funtion Handler

It opens: The DELETE function handler (FNDELETE, $AD2B) uses the * COMNOPEN routine ($AB28) to locate the desired file. COMNOPEN * configures the FM work area, reads in a fresh VTOC and then *… The file runs about 991 lines in this copy, 64 KB.

fninit.txt

24 KB · text

INIT function handler

It opens: The INIT function handler (FNINIT, $AEBE) is only called * by the INIT command handler (CMDINIT, $A54F). The execution * pattern of FNINIT is described in the preamble accompanying *… The file runs about 416 lines in this copy, 24 KB.

fnopen.txt

71 KB · text

OPEN function handler

It opens: The open function handler (FNOPEN, $AB22) simply tries to * locate the named file and read in its first T/S list. If the * file does not already exits and if the calling command can *… The file runs about 1,002 lines in this copy, 71 KB.

fnposn.txt

9 KB · text

Position Function handler

It opens: The position function handler (FNPOSN, $AD12) is simply * used to adjust the filepointer. This function is used * sparingly by DOS. As a matter of fact, FNPOSN is only called *… The file runs about 157 lines in this copy, 9 KB.

fnrename.txt

45 KB · text

RENAME function handler

It opens: The RENAME function handler (FNRENAME, $AC3A) uses the * COMNOPEN routine ($AB28) to locate the desired file. COMNOPEN * configures the FM work area, reads in a fresh VYOC and then *… The file runs about 654 lines in this copy, 45 KB.

fnverify.txt

72 KB · text

VERIFY function handler

It opens: The verify function simply opens & then "reads" a file. * Actual verification occurs deep within RWTS. As the data are * read, a checksum is calculated. If the calculated checksum *… The file runs about 1,029 lines in this copy, 72 KB.

psnrdone.txt

86 KB · text

Read Function handler

It opens: Use subfunction code as an index into the read sub- * function entry point table. Do a "stack jump" to execute the * desired READ subfunction. (Note: The read-position sub- *… The file runs about 1,074 lines in this copy, 86 KB.

psnrdrng.txt

88 KB · text

Read Function handler

It opens: Use subfunction code as an index into the read sub- * function entry point table. Do a "stack jump" to execute the * desired READ subfunction. (Note: The read-position sub- *… The file runs about 1,113 lines in this copy, 88 KB.

psnwrone.txt

94 KB · text

Write Function handler

It opens: Use subfunction code as an index into the write sub- * function entry point table. Do a "stack jump" to execute the * desired WRITE subfunction. (Note: The write-position sub- *… The file runs about 1,180 lines in this copy, 94 KB.

psnwrrng.txt

96 KB · text

Write Function handler

It opens: Use subfunction code as an index into the write sub- * function entry point table. Do a "stack jump" to execute the * desired WRITE subfunction. (Note: The write-position sub- *… The file runs about 1,219 lines in this copy, 96 KB.

references.txt

8 KB · text

DOS 3.3 ANATOMY - REFERENCES

It opens: Command Handlers can be found in the CMDS folder. Function Handlers can be found in the FN folder. Everything else can be This text file series of 'DOS 3.3 Anatomy could not have been… The file runs about 178 lines in this copy, 8 KB.

rwts.d1.format.txt

103 KB · text

RWTSDRV1 using FORMAT

It opens: Just as the file manager is used to manipulate entire * files at once, RWTS reads or writes disk data one sector at a * time. The software interface between these two levels of DOS *… The file runs about 1,174 lines in this copy, 103 KB.

rwts.drvr.seek.txt

63 KB · text

RWTSDRVR using SEEK

It opens: Just as the file manager is used to manipulate entire * files at once, RWTS reads or writes disk data one sector at a * time. The software interface between these two levels of DOS *… The file runs about 771 lines in this copy, 63 KB.

rwts.s.txt

17 KB · text

from the D O S - Source 1982

"from the D O S - Source 1982". The file runs about 1,294 lines in this copy, 17 KB.

rwtsd1.format.2.txt

43 KB · text

RWTSDRV1 USING FORMAT

It opens: BF1F) BCS VRFYRTN ;Irrelevant -already chkd write-protect BF27) BCC FRMTASEC ;No - go do some more. between writing the last byte of sec $0F… The file runs about 508 lines in this copy, 43 KB.

rwtsdrvr.read.txt

104 KB · text

RWTSDRVR using READ

It opens: Just as the file manager is used to manipulate entire * files at once, RWTS reads or writes disk data one sector at a * time. The software interface between these two levels of DOS *… The file runs about 1,294 lines in this copy, 104 KB.

rwtsdrvr.write.txt

106 KB · text

RWTSDRVR using WRITE

It opens: Just as the file manager is used to manipulate entire * files at once, RWTS reads or writes disk data one sector at a * time. The software interface between these two levels of DOS *… The file runs about 1,328 lines in this copy, 106 KB.

symbol.cross.ref.txt

62 KB · text

CROSS-REFERENCED SYMBOL TABLES

It opens: A l P H A B E T I C A L O R D E R --------------- A3L =$40 9E1B A26E A2D2 A2D6 A309 A6A0 A6A5 A738 A73D A748 A750 A778 A77C A784 A79C A7A2 A7A4 A7A6 A7AC… The file runs about 2,008 lines in this copy, 62 KB.

t.dos.9d00.9f22.txt

27 KB · text

ADDRESSES REFERRED TO BY DOS

It opens: CH = $24 ;OFFSET FROM LEFT EDGE OF WINDOW PT2BTBUF = $26 ;PTR ($26,$27) TO TARGET BUF USED HOLDNIBL = $26 ;TEMP REG USED FOR HOLDING TWO-… The file runs about 909 lines in this copy, 27 KB.

t.dos.9f23.a232.txt

28 KB · text

OUTPUT HANDLER 2.

It opens: BNE DSPLYALL ;NO - (WAS AN "RH BRACKETT"?) SET2EVAL LDX #0 ;SET CONDITION0 - EVALUATE START JMP DSPLYALL ;GO DISPLAY CHAR UNCONDITIONALLY. The file runs about 991 lines in this copy, 28 KB.

t.dos.a233.a50f.txt

26 KB · text

THE MON AND NOMON COMMAND HANDLERS.

It opens: CMDMON LDA CIOCUMUL ;GET PREV CUMMULATIVE RECORD AND ORA MONPRSD ;MERGE WITH THE LATEST PARSED VAL STA CIOCUMUL ;TO UPDATE CUMMULATIVE RECORD. The file runs about 870 lines in this copy, 26 KB.

t.dos.a510.a850.txt

27 KB · text

WRITE COMMAND HANDLER.

It opens: CMDWRITE JSR COMRDWR ;CALL COMMON READ/WRITE ROUTINE. JMP FINSHCMD ;XIT WITH CONDITION 5 SET SO THAT CMDREAD JSR COMRDWR ;CALL COMMON READ/WRITE ROUTINE. The file runs about 956 lines in this copy, 27 KB.

t.dos.a851.ac57.txt

25 KB · text

INITIALIZE THE I/O HOOKS SO THAT

It opens: BEQ CKOUTHK ;INPUT HK ALREADY POINTS 2 DOS'S STA KSWTRUE+1 ;KSW: KEYIN --> KSWTRUE: KEYIN. LDA ADINPTCP ;ADINPTCP:INPTINCP-->KSW:INPTINCP… The file runs about 842 lines in this copy, 25 KB.

t.dos.ac58.aff6.txt

27 KB · text

READ FUNCTION HANDLER.

It opens: FNREAD LDA SUBCODFM ;CHK IF SUBCODE IS LEGAL. BCS TOERRSUB ;RANGE ERROR - ILLEGAL SUBCODE. LDA RDSUBTBL+1,X;GET ADDR (MINUS 1) OF SUBFUNCT… The file runs about 957 lines in this copy, 27 KB.

t.dos.aff7.b2c2.txt

26 KB · text

READ THE VOLUME TABLE

It opens: RDWRVTOC LDY ADRVTOC ;GET ADR OF VTOC FRM FM CONSTANTS STY IBBUFP ;TABLE & DESIGNATE IT AS THE I/O LDX TRKWA ;ENTER RWTS DRIVER WITH (X)/(Y)… The file runs about 907 lines in this copy, 26 KB.

t.dos.b2c3.b65c.txt

26 KB · text

FREE UP SECTORS THAT WERE ASSIGNED

It opens: FIXMAP LDA ASIGNTRK ;HAS A TRK ALREADY BEEN ASSIGNED? BNE FREEXTRA ;YES - GO FREE UP EXTRA SECS. LDY ASIGNSEC ;SET (Y) = # OF NEXT SECTOR WHICH… The file runs about 850 lines in this copy, 26 KB.

t.dos.b65d.b7ff.txt

13 KB · text

OTHER ERROR PATCH.

It opens: OTHRERR JSR GETBUFF ;LOCATE BUFFER BELONGING TO THE BCS TOERRMSG ;NO BUFFER WAS ASSIGNED, SO NO TOERRMSG LDA RTNCODFM ;GET ERROR CODE TO INDEX ERR MSG. The file runs about 508 lines in this copy, 13 KB.

t.dos.b800.bcff.txt

24 KB · text

PRENIBBLE DATA ($B800-$B829).

It opens: LDA (PTR2BUF),Y ;GET BYTE FROM "DATA" BUFFER. STA RWTSBUF1,Y ;PUT REMAINING 6 BITS N RWTSBUF1. BNE PRENIB1 ;REPEAT UNTIL @ BYTE OF RWTSBUF2… The file runs about 917 lines in this copy, 24 KB.

t.dos.bd00.bfff.txt

27 KB · text

READ/WRITE TRACK/SECTOR (RWTS).

It opens: RWTS STY PTR2IOB ;SET UP A Z-PG PTR 2 RWTS'S IOB. STY RECLBCNT ;NUMBER OF RECALIBRATION TRIES. STY RSEEKCNT ;# OF RE-SEEKS BTW'N RECALIBS. The file runs about 978 lines in this copy, 27 KB.

t.dos.driver.txt

2 KB · data

A data file from the collection, kept byte for byte as it circulated, 2 KB. Files like this rode along with the programs and boards of the era as working parts, not reading matter.

t.xtraddrs.txt

9 KB · text

ADDRS USED IN THE FORMATTED

It opens: LOC0 = $00 ;REFERENCE ADR USD BY MONITOR ROM GOWARM = LOC0 ;A JMP INSTRUC (3 BYTES, $00-$02) GOSTROUT = $03 ;A JMP INSTRUC (3 BYTES, $03-$05)… The file runs about 268 lines in this copy, 9 KB.

ver.lock.unlock.txt

37 KB · text

VERIFY, LOCK and UNLOCK Command Handlers

It opens: The LOCK command protects a file from being accidentally * deleted or overwritten. This protection is removed by the * UNLOCK command. The VERIFY command checks that the data *… The file runs about 556 lines in this copy, 37 KB.