# This patch fixes a few bugs in the +3 manual transcription. # It's mostly fairly harmless typos, but one (relatively) big omission # is fixed (I'd missed the description of the +3DOS `delete' routine). # Just run `patch =2 C = Filter - bit 0 = include system files (is set) + bit 0 = include system files (if set) bits 1...7 = 0 (reserved) DE = Address of buffer (first entry initialised) HL = Address of filename (wildcards permitted) @@ -1192,6 +1192,28 @@ All other registers preserved +DOS DELETE +0124h (292) + +Delete an existing file. + +File must not be open on any file number. + +ENTRY CONDITIONS + HL = Address of filename (wildcards permitted) + +EXIT CONDITIONS + If OK: + Carry true + A corrupt + Otherwise: + Carry false + A = Error code + Always: + BC DE HL IX corrupt + All other registers preserved + + DOS RENAME 0127h (295) @@ -1321,7 +1343,7 @@ Carry true A corrupt E HL = File pointer 000000h...FFFFFFh (0...16777215) - (E holds most significant byte; L holds leat + (E holds most significant byte; L holds least significant byte) Otherwise: Carry false @@ -1342,9 +1364,9 @@ Does not check (or care) if pointer is >= 8 megabytes. ENTRY CONDITIONS - B = File numbers + B = File number E HL = File pointer 000000h...FFFFFFh (0...16777215) - (E holds most significant byte; L holds leat + (E holds most significant byte; L holds least significant byte) EXIT CONDITIONS @@ -1372,12 +1394,12 @@ ENTRY CONDITIONS B = File number -EXIT CONDTITIONS +EXIT CONDITIONS If OK: Carry true A corrupt E HL = File pointer 000000h...FFFFFFh (0...16777215) - (E holds most significant byte; L holds leat + (E holds most significant byte; L holds least significant byte) Otherwise: Carry false @@ -1435,8 +1457,8 @@ separately; any remaining buffers are unused by DOS and are available to the caller. -Note that the sizes actually usedd may be smaller than those specified -as in practice, there is a maxximum cache size and a minimum size of +Note that the sizes actually used may be smaller than those specified +as in practice, there is a maximum cache size and a minimum size of RAMdisk (4 sectors). A cache size of 0 will still work but will seriously impair the floppy diff -u tmp/plus3man/chapter8.part3 ./chapter8.part3 --- tmp/plus3man/chapter8.part3 Fri Jul 8 16:33:16 1994 +++ ./chapter8.part3 Sat Sep 16 03:13:12 1995 @@ -94,7 +94,4 @@ 30 IF a>b THEN PRINT a;" is higher" 40 IF a