mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +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:
parent
78c2b66e58
commit
a2ec97ac13
@ -79,6 +79,19 @@ struct dirent {
|
|||||||
char d_name[13]; /* 8.3 + trailing 0 */
|
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
|
#else
|
||||||
|
|
||||||
struct dirent {
|
struct dirent {
|
||||||
|
@ -112,8 +112,8 @@ flagsok:
|
|||||||
jsr steaxysp
|
jsr steaxysp
|
||||||
lda #$01
|
lda #$01
|
||||||
jsr pusha0
|
jsr pusha0
|
||||||
lda _FileEntry
|
lda #<_FileEntry
|
||||||
ldx _FileEntry+1
|
ldx #>_FileEntry
|
||||||
jsr pushax
|
jsr pushax
|
||||||
ldx #$00
|
ldx #$00
|
||||||
lda #$08
|
lda #$08
|
||||||
|
@ -10,12 +10,12 @@ MEMORY {
|
|||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
EXEHDR: load = HEADER, type = ro;
|
EXEHDR: load = HEADER, type = ro;
|
||||||
STARTUP: load = RAM, type = ro;
|
STARTUP: load = RAM, type = ro, define = yes;
|
||||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
LOWCODE: load = RAM, type = ro, optional = yes;
|
||||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||||
CODE: load = RAM, type = ro;
|
CODE: load = RAM, type = ro, define = yes;
|
||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro, define = yes;
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw, define = yes;
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
EXTZP: load = ZP, type = zp, optional = yes;
|
EXTZP: load = ZP, type = zp, optional = yes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user