diff --git a/.github/checks/sorted.sh b/.github/checks/sorted.sh index e15c04475..43dfa9a69 100755 --- a/.github/checks/sorted.sh +++ b/.github/checks/sorted.sh @@ -33,7 +33,8 @@ function checkarray_quoted_name } -find "$CHECK_DIR" -name \*.\[ch\] -print | while read N; do +FILES=$(find "$CHECK_DIR" -name \*.\[ch\] -print) +for N in $FILES; do grep -q "BEGIN SORTED.SH" "$N" && checkarray_quoted_name "$N" done exit 0 diff --git a/.github/checks/sorted_codeopt.sh b/.github/checks/sorted_codeopt.sh index 370bbfc9f..550779fd6 100755 --- a/.github/checks/sorted_codeopt.sh +++ b/.github/checks/sorted_codeopt.sh @@ -63,7 +63,8 @@ function checkarray } -find "$CHECK_DIR" -name \*.\[ch\] -print | while read N; do +FILES=$(find "$CHECK_DIR" -name \*.\[ch\] -print) +for N in $FILES; do grep -q "BEGIN DECL SORTED_CODEOPT.SH" "$N" && checkarray "$N" done exit 0 diff --git a/.github/checks/sorted_opcodes.sh b/.github/checks/sorted_opcodes.sh index 8f8764c6a..e72a970d1 100755 --- a/.github/checks/sorted_opcodes.sh +++ b/.github/checks/sorted_opcodes.sh @@ -34,7 +34,8 @@ function checkarray_quoted_name rm -rf .a.tmp } -find "$CHECK_DIR" -name \*.\[ch\] -print | while read N; do +FILES=$(find "$CHECK_DIR" -name \*.\[ch\] -print) +for N in $FILES; do grep -q "BEGIN SORTED_OPCODES.SH" "$N" && checkarray_quoted_name "$N" done exit 0 diff --git a/cfg/atari7800.cfg b/cfg/atari7800.cfg index 1eed534f3..5a3351e75 100644 --- a/cfg/atari7800.cfg +++ b/cfg/atari7800.cfg @@ -39,7 +39,7 @@ MEMORY { SEGMENTS { ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = zp; + EXTZP: load = ZP, type = zp, optional = yes; EXEHDR: load = HEADER, type = ro, optional = yes; STARTUP: load = ROMS, type = ro, define = yes; ONCE: load = ROMS, type = ro, define = yes; diff --git a/cfg/creativision.cfg b/cfg/creativision.cfg index f3b7ac0f4..d34278de6 100644 --- a/cfg/creativision.cfg +++ b/cfg/creativision.cfg @@ -23,7 +23,7 @@ FEATURES { CONDES: type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__, - segment = INIT; + segment = ONCE; CONDES: type = destructor, label = __DESTRUCTOR_TABLE__, count = __DESTRUCTOR_COUNT__, diff --git a/doc/ca65.sgml b/doc/ca65.sgml index c34b14398..5e53fb002 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -208,6 +208,16 @@ Here is a description of all the command line options: mortals:-) +