Data no longer stores it's end position.

Removed `Directive::DwRepeat`.
Fixed `WithInstructionsIter` stoping on `jr $ra` instead of at the end of the function.
This commit is contained in:
2020-10-29 00:38:31 +00:00
parent 15bee575f8
commit 00a85397a7
7 changed files with 43 additions and 108 deletions

View File

@@ -236,7 +236,7 @@ fn main() -> Result<(), anyhow::Error> {
}
// Comment any `dw` instructions that are function, data or string pointers
if let Instruction::Directive(Directive::Dw(target) | Directive::DwRepeated { value: target, .. }) = instruction {
if let Instruction::Directive(Directive::Dw(target)) = instruction {
if let Some(func) = functions.get(Pos(*target)) {
print!(" # {}", func.name);
}