* better suitable error message for out of range constants

git-svn-id: trunk@38290 -
This commit is contained in:
florian 2018-02-19 21:19:08 +00:00
parent 6c69e10613
commit 90051fd7d2

View File

@ -367,7 +367,7 @@ unit raavr;
// Need to check if original value was signed or simply sign overflowed in 16 bit?
if ((taicpu(Result).oper[i]^.val > AVRInstrConstraint[opcode].Operands[i].max) or
(taicpu(Result).oper[i]^.val < AVRInstrConstraint[opcode].Operands[i].min)) then
Message(cg_e_parasize_too_big);
Message(asmr_e_constant_out_of_bounds);
end;
end;
end;