Added return value to WriteJmp

This commit is contained in:
arookas 2016-02-01 04:41:06 -05:00
parent f8a945b757
commit 780345863e

View file

@ -175,7 +175,7 @@ namespace arookas {
case 1: sWriter.Write(" # local{0}", data); break;
}
}
static void WriteJmp(uint ofs) {
static uint WriteJmp(uint ofs) {
var dest = sReader.Read32();
var symbol = FetchSymbol(i => i.Data == ofs);
if (ofs > 0 && symbol != null) {
@ -185,6 +185,7 @@ namespace arookas {
else {
sWriter.Write(" ${0:X8}", dest);
}
return dest;
}
static void WriteData() {
Console.WriteLine("Outputting .data...");