# 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 <this-file' from the directory you've unpacked the
# manual in.
#
# Note that this is relative to the Unix-format version; the dos CR/LF
# version may or may not patch correctly.
#
# -Rus 961007.
#
# PS. Yes, I admit it, this also deletes a rather embarrassing (i.e.
# wrong) comment I made about a program in one of the exercises. :-)
#
diff -u tmp/plus3man/chapter8.part10 ./chapter8.part10
--- tmp/plus3man/chapter8.part10	Fri Nov 25 18:33:39 1994
+++ ./chapter8.part10	Sat Sep 16 03:08:24 1995
@@ -231,7 +231,7 @@
                                   |
                                   |
 
-Note that if the point goes to the left of the y0axis, then the cosine
+Note that if the point goes to the left of the y-axis, then the cosine
 becomes negative, and if the point goes below the x-axis, the since
 becomes negative.
 
diff -u tmp/plus3man/chapter8.part27 ./chapter8.part27
--- tmp/plus3man/chapter8.part27	Tue Apr 11 04:29:38 1995
+++ ./chapter8.part27	Wed Apr 24 17:42:30 1996
@@ -1140,7 +1140,7 @@
 
 	Bytes 0...7	- Filename (ASCII) left justified, space
 			   filled
-	Bytes 6...10	- Type (ASCII) left justified, space filledd
+	Bytes 8...10	- Type (ASCII) left justified, space filled
 	Bytes 11...12	- Size in kilobytes (binary)
 
 The file size is the amount of disk space allocated to the file, not
@@ -1149,7 +1149,7 @@
 ENTRY CONDITIONS
 	B = n+1, size of buffer in entries, >=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<b THEN PRINT b;" is higher"
 
-[Yes, this is how the program actually reads in the manual. Of course,
-the contents of the PRINT statements don't really matter much.]
-
 Before you run it, try to work out what will be printed on the screen.
