Commit f436a004 authored by c0pperdragon's avatar c0pperdragon

Fixes

Fixed bug in addressing more than 32767 bytes of global variables.
Having two Sub with identical name now causes compiler error.
parent a1f7956d
......@@ -1685,6 +1685,8 @@ namespace EV3BasicCompiler
parse_keyword("SUB");
String subname = parse_id();
if (subcallstructure.ContainsKey(subname)) s.ThrowParseError("Redefined Sub " + subname);
subcallstructure[subname] = new List<String>();
subcallstructure[subname].Add(subname);
......
......@@ -116,7 +116,7 @@ namespace LMSAssembler
else
{
program.WriteByte((byte) (local?0xc3:0xe3));
DataWriter.Write16(program, index);
DataWriter.Write32(program, index);
}
}
public void AddStringLiteral(String s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment