[Edumips64-commit] SF.net SVN: edumips64:[595] branches/0.5/core/Parser.java
Brought to you by:
lupino3
|
From: <sv...@ed...> - 2011-06-02 14:22:54
|
Revision: 595
https://www.edumips.org/changeset/595
Author: lupino3
Date: 2011-06-02 16:22:45 +0200 (Thu, 02 Jun 2011)
Log Message:
-----------
While seeking for a bug, I found another bug and I fixed it.
Modified Paths:
--------------
branches/0.5/core/Parser.java
Modified: branches/0.5/core/Parser.java
===================================================================
--- branches/0.5/core/Parser.java 2011-06-01 14:19:14 UTC (rev 594)
+++ branches/0.5/core/Parser.java 2011-06-02 14:22:45 UTC (rev 595)
@@ -895,10 +895,13 @@
{
numError++;
String er = "LABELADDRESSINVALID";
- if (tmp > edumips64.core.CPU.DATALIMIT)
+ if (tmp > edumips64.core.CPU.DATALIMIT) {
er = "LABELTOOLARGE";
error.add(er,row,line.indexOf(param.substring(indPar,endPar))+1,line);
- error.add("LABELADDRESSINVALID",row,line.indexOf(param.substring(indPar,endPar))+1,line);
+ }
+ else {
+ error.add("LABELADDRESSINVALID",row,line.indexOf(param.substring(indPar,endPar))+1,line);
+ }
i = line.length();
indPar = endPar+1;
tmpInst.getParams().add(0);
|