1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

More changes by Karri Kaksonen.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4899 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-01-04 19:39:07 +00:00
parent 78c2b66e58
commit a2ec97ac13
3 changed files with 19 additions and 6 deletions

View File

@ -79,6 +79,19 @@ struct dirent {
char d_name[13]; /* 8.3 + trailing 0 */
};
#elif defined(__LYNX__)
struct dirent {
unsigned char d_blocks;
unsigned int d_offset;
char d_type;
void *d_address;
unsigned int d_size;
};
extern struct dirent FileEntry;
#pragma zpsym ("FileEntry");
#else
struct dirent {

View File

@ -112,8 +112,8 @@ flagsok:
jsr steaxysp
lda #$01
jsr pusha0
lda _FileEntry
ldx _FileEntry+1
lda #<_FileEntry
ldx #>_FileEntry
jsr pushax
ldx #$00
lda #$08

View File

@ -10,12 +10,12 @@ MEMORY {
}
SEGMENTS {
EXEHDR: load = HEADER, type = ro;
STARTUP: load = RAM, type = ro;
STARTUP: load = RAM, type = ro, define = yes;
LOWCODE: load = RAM, type = ro, optional = yes;
INIT: load = RAM, type = ro, define = yes, optional = yes;
CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw;
CODE: load = RAM, type = ro, define = yes;
RODATA: load = RAM, type = ro, define = yes;
DATA: load = RAM, type = rw, define = yes;
BSS: load = RAM, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
EXTZP: load = ZP, type = zp, optional = yes;