-/* All cbm_* IO functions set _oserror (see errno.h) in case of an
- * error.
- *
- * errorcode BASIC error
- * 1 = too many files
- * 2 = file open
- * 3 = file not open
- * 4 = file not found
- * 5 = device not present
- * 6 = not input file
- * 7 = not output file
- * 8 = missing filename
- * 9 = illegal device number
- */
-
-
-
-unsigned int cbm_load (const char* name, unsigned char device,
- const char* data);
-/* Loads file "name" from given device to given address or to the load
- * address of the file if "data" is the null pointer (like load"name",8,1
- * in BASIC).
- * Returns number of bytes that where loaded if loading was successful
- * otherwise 0. "_oserror" contains an errorcode then (see table below).
- */
-
-unsigned char cbm_save (const char* name, unsigned char device,
- unsigned char* data, unsigned int size);
-/* Saves "size" bytes starting at "data" to a file.
- * Returns 0 if saving was successful, otherwise an errorcode (see table
- * below).
- */
-
-unsigned char __fastcall__ cbm_open (unsigned char lfn,
- unsigned char device,
- unsigned char sec_addr,
- const char* name);
+/* The cbm_* I/O functions below set _oserror (see errno.h),
+** in case of an error.
+**
+** error-code BASIC error
+** ---------- -----------
+** 1 = too many files
+** 2 = file open
+** 3 = file not open
+** 4 = file not found
+** 5 = device not present
+** 6 = not input-file
+** 7 = not output-file
+** 8 = missing file-name
+** 9 = illegal device-number
+**
+** 10 = STOP-key pushed
+** 11 = general I/O-error
+*/
+
+
+
+unsigned int __fastcall__ cbm_load (const char* name, unsigned char device, void* data);
+/* Loads file "name", from given device, to given address -- or, to the load
+** address of the file if "data" is the null pointer (like load"name",8,1
+** in BASIC).
+** Returns number of bytes that were loaded if loading was successful;
+** otherwise 0, "_oserror" contains an error-code, then (see table above).
+*/
+
+unsigned char __fastcall__ cbm_save (const char* name, unsigned char device,
+ const void* addr, unsigned int size);
+/* Saves "size" bytes, starting at "addr", to a file.
+** Returns 0 if saving was successful, otherwise an error-code (see table
+** above).
+*/
+
+unsigned char __fastcall__ cbm_open (unsigned char lfn, unsigned char device,
+ unsigned char sec_addr, const char* name);