From 580714073214f25a7e092c19bda5892e5bf4b838 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 15 Oct 2000 19:52:33 +0000 Subject: [PATCH] Allow larger address ranges git-svn-id: svn://svn.cc65.org/cc65/trunk@370 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.5