+/*****************************************************************************/
+/* Variables */
+/*****************************************************************************/
+
+
+
+/* The file stream implementation and the POSIX I/O functions will use the
+ * following variables to determine the file type and the aux type to use.
+ */
+extern unsigned char _filetype; /* Default 6 */
+extern unsigned int _auxtype; /* Default 0 */
+
+
+
/*****************************************************************************/
/* Code */
/*****************************************************************************/
; called before closeallfiles).
.export _open, closedirect, freebuffer
+ .export __filetype, __auxtype
.destructor closeallfiles, 17
.import pushname, popname
ldx #CLOSE_COUNT
jmp callmli
- .rodata
+ .data
CREATE: .byte %11000011 ; ACCESS: Standard full access
+__filetype:
.byte $06 ; FILE_TYPE: Standard binary file
+__auxtype:
.word $0000 ; AUX_TYPE: Load address N/A
.byte $01 ; STORAGE_TYPE: Standard seedling file
.word $0000 ; CREATE_DATE: Current date