croesch/micro-debug — Issue #21: Exception when executing LS-MACRO-CODE
Author: croesch
Created: 2012-02-16 21:34:26+00:00
State: open
Labels: bug

The following exception occurs when executing ```ls-macro-code``` with the files ```values.ijvm``` and ```selectionsort.mic1``` from Micsi.

```
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at com.github.croesch.micro_debug.mic1.mem.Memory.getByte(Memory.java:322)
at com.github.croesch.micro_debug.console.MemoryInterpreter.refineEndOfCode(MemoryInterpreter.java:250)
at com.github.croesch.micro_debug.console.MemoryInterpreter.getLastPossibleCodeAddress(MemoryInterpreter.java:234)
at com.github.croesch.micro_debug.commons.AbstractCodeContainer.printCode(AbstractCodeContainer.java:60)
at com.github.croesch.micro_debug.commons.AbstractCodeContainer.printCode(AbstractCodeContainer.java:36)
at com.github.croesch.micro_debug.console.Mic1Interpreter.printMacroCode(Mic1Interpreter.java:250)
at com.github.croesch.micro_debug.console.UserInstruction$5.execute(UserInstruction.java:92)
at com.github.croesch.micro_debug.console.Debugger.run(Debugger.java:65)
at com.github.croesch.micro_debug.MicroDebug.handleEnoughArguments(MicroDebug.java:114)
at com.github.croesch.micro_debug.MicroDebug.main(MicroDebug.java:73)
```