]> git.sur5r.net Git - cc65/commitdiff
Changed __BLOCKSIZE__ to __BANK0BLOCKSIZE__.
authorAlex Thissen <alexthissen@hotmail.com>
Sun, 11 Sep 2016 20:26:52 +0000 (22:26 +0200)
committerAlex Thissen <alexthissen@hotmail.com>
Sun, 11 Sep 2016 20:26:52 +0000 (22:26 +0200)
Added __BANK1BLOCKSIZE__ which defaults to 0.

cfg/lynx-bll.cfg
cfg/lynx-coll.cfg
cfg/lynx-uploader.cfg
cfg/lynx.cfg
libsrc/lynx/bootldr.s
libsrc/lynx/defdir.s
libsrc/lynx/exehdr.s

index a1687b423f90f30789c175a114169ab9abefc2f5..fbf64e8e9e7914ffc596bdd64b8f156b21e1e95f 100644 (file)
@@ -1,7 +1,8 @@
 SYMBOLS {
     __STACKSIZE__:        type = weak, value = $0800; # 2k stack
     __STARTOFDIRECTORY__: type = weak, value = $00CB; # start just after loader
-    __BLOCKSIZE__:        type = weak, value = $0400; # cart block size
+    __BANK0BLOCKSIZE__:   type = weak, value = 1024; # bank 0 cart block size
+    __BANK1BLOCKSIZE__:   type = weak, value = 0; # bank 1 block size
     __BLLHDR__:           type = import;
 }
 MEMORY {
index 9467c3c921f64a7ddd5588700b969e1a5ed4dded..2be172196e69d63f7a4d774a1acf37d4fd17705f 100644 (file)
@@ -1,7 +1,8 @@
 SYMBOLS {
     __STACKSIZE__:        type = weak, value = $0800; # 2k stack
     __STARTOFDIRECTORY__: type = weak, value = $00CB; # start just after loader
-    __BLOCKSIZE__:        type = weak, value = $0400; # cart block size
+    __BANK0BLOCKSIZE__:   type = weak, value = 1024; # bank 0 cart block size
+    __BANK1BLOCKSIZE__:   type = weak, value = 0; # bank 1 block size
     __EXEHDR__:           type = import;
     __BOOTLDR__:          type = import;
     __DEFDIR__:           type = import;
index c32e3583f400b836183d8dccd138a449d6b866f3..ba3c13dcfcfe9f359956aa45c2b55f0c7583359f 100644 (file)
@@ -1,7 +1,8 @@
 SYMBOLS {
     __STACKSIZE__:        type = weak, value = $0800; # 2k stack
     __STARTOFDIRECTORY__: type = weak, value = $00CB; # start just after loader
-    __BLOCKSIZE__:        type = weak, value = $0400; # cart block size
+    __BANK0BLOCKSIZE__:   type = weak, value = 1024; # bank 0 cart block size
+    __BANK1BLOCKSIZE__:   type = weak, value = 0; # bank 1 block size
     __EXEHDR__:           type = import;
     __BOOTLDR__:          type = import;
     __DEFDIR__:           type = import;
index 5140b342fe90a43360607f99a8cabf3d912dd486..adcf67a983904bd1cdfe4f6fc4909cf58caa73f1 100644 (file)
@@ -1,7 +1,8 @@
 SYMBOLS {
     __STACKSIZE__:        type = weak, value = $0800; # 2k stack
     __STARTOFDIRECTORY__: type = weak, value = $00CB; # start just after loader
-    __BLOCKSIZE__:        type = weak, value = 1024; # cart block size
+    __BANK0BLOCKSIZE__:   type = weak, value = 512; # bank 0 cart block size
+    __BANK1BLOCKSIZE__:   type = weak, value = 0; # bank 1 block size
     __EXEHDR__:           type = import;
     __BOOTLDR__:          type = import;
     __DEFDIR__:           type = import;
@@ -42,4 +43,4 @@ FEATURES {
             count   = __INTERRUPTOR_COUNT__,
             segment = RODATA,
             import  = __CALLIRQ__;
-}
+}
\ No newline at end of file
index a62d6155cd706709ee6b7c246a0fcaab9cfacf34..64569e6eec9e6fbbfd6ddbd2303bbd747550dad8 100644 (file)
@@ -5,7 +5,7 @@
 ;
         .include "lynx.inc"
         .include "extzp.inc"
-        .import         __BLOCKSIZE__
+        .import         __BANK0BLOCKSIZE__
         .export         __BOOTLDR__: absolute = 1
 
 
@@ -167,7 +167,7 @@ seclynxblock:
         lda __iodat
         sta IODAT
         stz _FileBlockByte
-        lda #<($100-(>__BLOCKSIZE__))
+        lda #<($100-(>__BANK0BLOCKSIZE__))
         sta _FileBlockByte+1
         ply
         plx
index 2930edf4beab17260cfce842d397694d73574a94..c0fe19f4de270fe130c12427f99412f2bba25d28 100644 (file)
@@ -8,7 +8,7 @@
         .import         __MAIN_START__
         .import         __CODE_SIZE__, __DATA_SIZE__, __RODATA_SIZE__
         .import         __STARTUP_SIZE__, __ONCE_SIZE__, __LOWCODE_SIZE__
-        .import         __BLOCKSIZE__
+        .import         __BANK0BLOCKSIZE__
         .export         __DEFDIR__: absolute = 1
 
 
 
 __DIRECTORY_START__:
 off0 = __STARTOFDIRECTORY__ + (__DIRECTORY_END__ - __DIRECTORY_START__)
-blocka = off0 / __BLOCKSIZE__
+blocka = off0 / __BANK0BLOCKSIZE__
 ; Entry 0 - first executable
-block0 = off0 / __BLOCKSIZE__
+block0 = off0 / __BANK0BLOCKSIZE__
 len0 = __STARTUP_SIZE__ + __ONCE_SIZE__ + __CODE_SIZE__ + __DATA_SIZE__ + __RODATA_SIZE__ + __LOWCODE_SIZE__
         .byte   <block0
-        .word   off0 & (__BLOCKSIZE__ - 1)
+        .word   off0 & (__BANK0BLOCKSIZE__ - 1)
         .byte   $88
         .word   __MAIN_START__
         .word   len0
index 3be926bb34c7fe2e389263b87e0cfabafe26e456..d63c0524d708042e0ed1bf0ef99d2edc37b989c4 100644 (file)
@@ -3,7 +3,8 @@
 ;
 ; This header contains data for emulators like Handy and Mednafen
 ;
-        .import         __BLOCKSIZE__
+        .import         __BANK0BLOCKSIZE__
+        .import         __BANK1BLOCKSIZE__
         .export         __EXEHDR__: absolute = 1
 
 
@@ -11,8 +12,8 @@
 ; EXE header
         .segment "EXEHDR"
         .byte   'L','Y','N','X'                         ; magic
-        .word   __BLOCKSIZE__                           ; bank 0 page size
-        .word   0                                       ; bank 1 page size
+        .word   __BANK0BLOCKSIZE__                      ; bank 0 page size
+        .word   __BANK1BLOCKSIZE__                      ; bank 1 page size
         .word   1                                       ; version number
         .asciiz "Cart name                      "       ; 32 bytes cart name
         .asciiz "Manufacturer   "                       ; 16 bytes manufacturer