]> git.sur5r.net Git - cc65/commitdiff
More changes by Karri Kaksonen.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Jan 2011 19:39:07 +0000 (19:39 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Jan 2011 19:39:07 +0000 (19:39 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4899 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dirent.h
libsrc/lynx/open.s
src/ld65/cfg/lynx.cfg

index 362e5b86830cc5acb7be0fe7057c6133c674e3f7..612fe386979a7baa09f6041f2732c542faac8a91 100644 (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 {
index f4d0471b000a3bebedc39ea9b5b9a43d8d52d9ff..3ef56cd03cafc2580b7ea04c80bd9749c3aaa367 100644 (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
index d94b1fa90935ee3217a648c087f4cbac8cc48b59..5d45a2614d5853c542cba6c10de1a71565d201d0 100644 (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;