From: cuz Date: Sun, 15 Oct 2000 19:52:33 +0000 (+0000) Subject: Allow larger address ranges X-Git-Tag: V2.12.0~3156 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=580714073214f25a7e092c19bda5892e5bf4b838;p=cc65 Allow larger address ranges git-svn-id: svn://svn.cc65.org/cc65/trunk@370 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/config.c b/src/da65/config.c index eaa64612c..d76aa6993 100644 --- a/src/da65/config.c +++ b/src/da65/config.c @@ -291,7 +291,7 @@ static void LabelSection (void) CfgError ("Size already given"); } CfgAssureInt (); - CfgRangeCheck (1, 0x800); + CfgRangeCheck (1, 0x10000); Size = CfgIVal; CfgNextTok (); break; @@ -313,6 +313,9 @@ static void LabelSection (void) /* Use default */ Size = 1; } + if (Value + Size > 0x10000) { + CfgError ("Invalid size (address out of range)"); + } if (HaveLabel ((unsigned) Value)) { CfgError ("Label for address $%04lX already defined", Value); }