Defined a struct to contain the date and time data

To keep backward compatibility auxtype and the date/time are kept
separated.
A struct similar to the one used in dirent.h is used to access the
create_date and create_time fields.
This commit is contained in:
Mario Patiño
2013-08-03 19:08:36 +02:00
parent be7c24177c
commit 9b157a5b1e
2 changed files with 13 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
;
.export _open, closedirect, freebuffer
.export __filetype, __auxtype
.export __filetype, __auxtype, __datetime
.constructor raisefilelevel
.destructor closeallfiles, 5
@@ -246,5 +246,6 @@ __filetype:
__auxtype:
.word $0000 ; AUX_TYPE: Load address N/A
.byte $01 ; STORAGE_TYPE: Standard seedling file
__datetime:
.word $0000 ; CREATE_DATE: Current date
.word $0000 ; CREATE_TIME: Current time