Fixed the cart directory build code to handle even simple programs.

Carts can be built containing programs that don't link some segments.
This commit is contained in:
Greg King 2022-01-31 07:10:03 -05:00 committed by greg-king5
parent 112e216e53
commit 7118c9236b
2 changed files with 3 additions and 5 deletions

View File

@ -6,8 +6,7 @@
.include "lynx.inc"
.import __STARTOFDIRECTORY__
.import __MAIN_START__
.import __CODE_SIZE__, __DATA_SIZE__, __RODATA_SIZE__
.import __STARTUP_SIZE__, __ONCE_SIZE__, __LOWCODE_SIZE__
.import __STARTUP_LOAD__, __BSS_LOAD__
.import __BANK0BLOCKSIZE__
.export __DEFDIR__: absolute = 1
@ -21,7 +20,7 @@ off0 = __STARTOFDIRECTORY__ + (__DIRECTORY_END__ - __DIRECTORY_START__)
blocka = off0 / __BANK0BLOCKSIZE__
; Entry 0 - first executable
block0 = off0 / __BANK0BLOCKSIZE__
len0 = __STARTUP_SIZE__ + __ONCE_SIZE__ + __CODE_SIZE__ + __DATA_SIZE__ + __RODATA_SIZE__ + __LOWCODE_SIZE__
len0 = __BSS_LOAD__ - __STARTUP_LOAD__
.byte <block0
.word off0 & (__BANK0BLOCKSIZE__ - 1)
.byte $88

View File

@ -692,9 +692,8 @@ EXELIST_bbc = \
EXELIST_lunix = \
notavailable
# none of the testcode can work on the lynx (library support is broken!)
EXELIST_lynx = \
notavailable
minimal
# Unlisted targets will try to build everything.
# That lets us learn what they cannot build, and what settings