mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-12-22 18:30:44 +00:00
Changed "Bin/Hex value without any digits" from warning to error.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@315 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
088c5af442
commit
8229fe47b0
@ -51,11 +51,6 @@ Assembling unstable LXA #NONZERO instruction
|
||||
Therefore ACME issues these warnings if it is about to generate
|
||||
these instructions with a non-zero argument.
|
||||
|
||||
Binary literal without any digits.
|
||||
Hex literal without any digits.
|
||||
A special literal was started, but then no digits followed. Expect
|
||||
this to become an error in future!
|
||||
|
||||
Binary literal with strange number of digits.
|
||||
This warning is given if the number of digits in a binary literal
|
||||
is not a multiple of four. This is useful when you meant to write
|
||||
@ -225,6 +220,10 @@ After ELSE, expected block or IF/IFDEF/IFNDEF.
|
||||
Argument out of range.
|
||||
You called arcsin/arccos with something not in the [-1, 1] range.
|
||||
|
||||
Binary literal without any digits.
|
||||
Hex literal without any digits.
|
||||
There were no digits after a number prefix like "0x" or "%".
|
||||
|
||||
Cannot open input file.
|
||||
ACME had problems opening an input file ("!bin", "!convtab" or
|
||||
"!src"). Maybe you mistyped its name.
|
||||
|
@ -482,7 +482,7 @@ static void parse_binary_literal(void) // Now GotByte = "%" or "b"
|
||||
break; // found illegal character
|
||||
}
|
||||
if (!digits)
|
||||
Throw_warning("Binary literal without any digits."); // FIXME - make into error!
|
||||
Throw_error("Binary literal without any digits.");
|
||||
if (digits & config.warn_bin_mask)
|
||||
Throw_first_pass_warning("Binary literal with strange number of digits.");
|
||||
// set force bits
|
||||
@ -531,7 +531,7 @@ static void parse_hex_literal(void) // Now GotByte = "$" or "x"
|
||||
break; // found illegal character
|
||||
}
|
||||
if (!digits)
|
||||
Throw_warning("Hex literal without any digits."); // FIXME - make into error!
|
||||
Throw_error("Hex literal without any digits.");
|
||||
// set force bits
|
||||
if (config.honor_leading_zeroes) {
|
||||
if (digits > 2) {
|
||||
@ -730,7 +730,7 @@ static int parse_octal_or_unpseudo(void) // now GotByte = '&'
|
||||
Input_read_keyword(); // now GotByte = illegal char
|
||||
get_symbol_value(SCOPE_GLOBAL, '\0', GlobalDynaBuf->size - 1, unpseudo_count); // no prefix, -1 to not count terminator
|
||||
} else {
|
||||
Throw_error(exception_missing_string);
|
||||
Throw_error(exception_missing_string); // FIXME - create some "expected octal value or symbol name" error instead!
|
||||
return 1; // error
|
||||
}
|
||||
return 0; // ok
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
#define RELEASE "0.97" // update before release FIXME
|
||||
#define CODENAME "Zem" // update before release
|
||||
#define CHANGE_DATE "24 Oct" // update before release FIXME
|
||||
#define CHANGE_YEAR "2020" // update before release
|
||||
#define CHANGE_DATE "27 Jan" // update before release FIXME
|
||||
#define CHANGE_YEAR "2021" // update before release
|
||||
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
|
||||
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user