Added return value to WriteJmp
This commit is contained in:
parent
f8a945b757
commit
780345863e
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,7 @@ namespace arookas {
|
||||||
case 1: sWriter.Write(" # local{0}", data); break;
|
case 1: sWriter.Write(" # local{0}", data); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void WriteJmp(uint ofs) {
|
static uint WriteJmp(uint ofs) {
|
||||||
var dest = sReader.Read32();
|
var dest = sReader.Read32();
|
||||||
var symbol = FetchSymbol(i => i.Data == ofs);
|
var symbol = FetchSymbol(i => i.Data == ofs);
|
||||||
if (ofs > 0 && symbol != null) {
|
if (ofs > 0 && symbol != null) {
|
||||||
|
@ -185,6 +185,7 @@ namespace arookas {
|
||||||
else {
|
else {
|
||||||
sWriter.Write(" ${0:X8}", dest);
|
sWriter.Write(" ${0:X8}", dest);
|
||||||
}
|
}
|
||||||
|
return dest;
|
||||||
}
|
}
|
||||||
static void WriteData() {
|
static void WriteData() {
|
||||||
Console.WriteLine("Outputting .data...");
|
Console.WriteLine("Outputting .data...");
|
||||||
|
|
Loading…
Add table
Reference in a new issue