TheThirdOne/rars

Incorrect file name in errors when using .import

athas opened this issue · 0 comments

athas commented

Suppose foo.s:

j bar

.include "bar.s"

And bar.s:

bar:    lw zero, 0(zero)

Then if you run java -jar rars.jar foo.s you will get an error reading:

Error in /home/athas/code/foo.s line 1: Runtime exception at 0x00400004: address out of range 0x00000000

But actually the error is in bar.s! The line number is correct, though.