mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
405a5df431
@ -32,7 +32,7 @@ MEMORY {
|
|||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
ZEROPAGE: type = zp, load = ZP;
|
ZEROPAGE: type = zp, load = ZP;
|
||||||
EXTZP: type = zp, load = ZP;
|
EXTZP: type = zp, load = ZP, optional = yes;
|
||||||
EXTBSS: type = bss, load = EXT, define = yes, optional = yes;
|
EXTBSS: type = bss, load = EXT, define = yes, optional = yes;
|
||||||
FILEINFO: type = ro, load = CVT, offset = $002;
|
FILEINFO: type = ro, load = CVT, offset = $002;
|
||||||
RECORDS: type = ro, load = CVT, offset = $100, optional = yes;
|
RECORDS: type = ro, load = CVT, offset = $100, optional = yes;
|
||||||
|
@ -31,7 +31,7 @@ MEMORY {
|
|||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
ZEROPAGE: type = zp, load = ZP;
|
ZEROPAGE: type = zp, load = ZP;
|
||||||
EXTZP: type = zp, load = ZP;
|
EXTZP: type = zp, load = ZP, optional = yes;
|
||||||
DIRENTRY: type = ro, load = CVT, align = $FE;
|
DIRENTRY: type = ro, load = CVT, align = $FE;
|
||||||
FILEINFO: type = ro, load = CVT, align = $FE;
|
FILEINFO: type = ro, load = CVT, align = $FE;
|
||||||
RECORDS: type = ro, load = CVT, align = $FE, optional = yes;
|
RECORDS: type = ro, load = CVT, align = $FE, optional = yes;
|
||||||
|
@ -136,10 +136,22 @@ extern unsigned char _dos_type;
|
|||||||
|
|
||||||
|
|
||||||
/* The file stream implementation and the POSIX I/O functions will use the
|
/* 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.
|
* following variables to determine the file type, aux type and creation time
|
||||||
|
* stamp to use.
|
||||||
*/
|
*/
|
||||||
extern unsigned char _filetype; /* Default 6 */
|
extern unsigned char _filetype; /* Default: 6 */
|
||||||
extern unsigned int _auxtype; /* Default 0 */
|
extern unsigned int _auxtype; /* Default: 0 */
|
||||||
|
extern struct {
|
||||||
|
struct {
|
||||||
|
unsigned day :5;
|
||||||
|
unsigned mon :4;
|
||||||
|
unsigned year :7;
|
||||||
|
} createdate; /* Current date: 0 */
|
||||||
|
struct {
|
||||||
|
unsigned char min;
|
||||||
|
unsigned char hour;
|
||||||
|
} createtime; /* Current time: 0 */
|
||||||
|
} _datetime;
|
||||||
|
|
||||||
/* The addresses of the static drivers */
|
/* The addresses of the static drivers */
|
||||||
#if !defined(__APPLE2ENH__)
|
#if !defined(__APPLE2ENH__)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
.export _open, closedirect, freebuffer
|
.export _open, closedirect, freebuffer
|
||||||
.export __filetype, __auxtype
|
.export __filetype, __auxtype, __datetime
|
||||||
.constructor raisefilelevel
|
.constructor raisefilelevel
|
||||||
.destructor closeallfiles, 5
|
.destructor closeallfiles, 5
|
||||||
|
|
||||||
@ -246,5 +246,6 @@ __filetype:
|
|||||||
__auxtype:
|
__auxtype:
|
||||||
.word $0000 ; AUX_TYPE: Load address N/A
|
.word $0000 ; AUX_TYPE: Load address N/A
|
||||||
.byte $01 ; STORAGE_TYPE: Standard seedling file
|
.byte $01 ; STORAGE_TYPE: Standard seedling file
|
||||||
|
__datetime:
|
||||||
.word $0000 ; CREATE_DATE: Current date
|
.word $0000 ; CREATE_DATE: Current date
|
||||||
.word $0000 ; CREATE_TIME: Current time
|
.word $0000 ; CREATE_TIME: Current time
|
||||||
|
Loading…
Reference in New Issue
Block a user