bmx: error for unsupported file version

This commit is contained in:
Irmen de Jong 2023-12-02 23:56:59 +01:00
parent 48f09f71ab
commit 2b227b43fe
3 changed files with 11 additions and 7 deletions

View File

@ -39,8 +39,7 @@ bmx {
error_message = "image too large"
} else
error_message = "invalid bmx file"
} else
error_message = "invalid bmx file"
} ; note: parse_header sets the error message by itself
} else
error_message = "invalid bmx file"
} else
@ -328,8 +327,11 @@ save_end:
compression = header[14]
border = header[15]
return true
}
}
} else
error_message = "unsupported bmx file version"
} else
error_message = "invalid bmx file"
return false
}

View File

@ -20,10 +20,11 @@ The language aims to provide many conveniences over raw assembly code (even when
while still being low level enough to create high performance programs.
You can compile programs for various machines with this CPU:
* Commodore 64
* Commander X16
* Commodore 128 (limited support for now)
* Atari 800 XL (limited support for now)
* Commodore 64
* Commodore 128 (limited support)
* Commodore PET (limited support)
* Atari 800 XL (limited support)
Prog8 is copyright © Irmen de Jong (irmen@razorvine.net | http://www.razorvine.net).

View File

@ -213,6 +213,7 @@ Directives
included_bin:
%asmbinary "inc.bin"
end_of_included_bin:
}
}