Fixed: write dest, not ofs

This commit is contained in:
arookas 2016-01-23 01:36:27 -05:00
parent 79e167da39
commit 1e8eb63f34

View file

@ -176,7 +176,7 @@ namespace arookas {
var symbol = FetchSymbol(i => i.Data == ofs);
if (ofs > 0 && symbol != null) {
var name = FetchSymbolName(symbol);
sWriter.Write(" {0} + ${1:X4} # ${2:X8}", name, dest - ofs, ofs);
sWriter.Write(" {0} + ${1:X4} # ${2:X8}", name, dest - ofs, dest);
}
else {
sWriter.Write(" ${0:X8}", dest);