Skip to content

Commit

Permalink
Merge pull request #30 from Robby-Blue/main
Browse files Browse the repository at this point in the history
fix mistakes that yeti made while very very tired
  • Loading branch information
yeti0904 authored Nov 15, 2024
2 parents 34cc61d + 7d3d161 commit 1460a16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/backends/rm86.d
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class BackendRM86 : CompilerBackend {
output ~= format("call __func__%s\n", node.name.Sanitise());

if (word.error && words[thisFunc].error) {
output ~= "pop si\n";
output ~= "pop di\n";
}
}
}
Expand All @@ -320,6 +320,7 @@ class BackendRM86 : CompilerBackend {
output ~= format("jne __func__%s\n", Sanitise("__rm86_exception"));
}
else {
output ~= "mov si, di\n";
CompileReturn(node);
}
}
Expand Down
3 changes: 2 additions & 1 deletion source/backends/uxn.d
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class BackendUXN : CompilerBackend {
output ~= format("func__%s\n", node.name.Sanitise());

if (word.error && words[thisFunc].error) {
output ~= "LITr -System/wst DEOr\n";
output ~= "LITr -temp STZr\n";
}
}
}
Expand All @@ -275,6 +275,7 @@ class BackendUXN : CompilerBackend {
output ~= format(";func__%s JCN2\n", Sanitise("__uxn_exception"));
}
else {
output ~= ".temp LDZ .System/wst DEO\n";
CompileReturn(node);
}
}
Expand Down

0 comments on commit 1460a16

Please sign in to comment.