Skip to content

Commit 1460a16

Browse files
authored
Merge pull request #30 from Robby-Blue/main
fix mistakes that yeti made while very very tired
2 parents 34cc61d + 7d3d161 commit 1460a16

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/backends/rm86.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class BackendRM86 : CompilerBackend {
297297
output ~= format("call __func__%s\n", node.name.Sanitise());
298298

299299
if (word.error && words[thisFunc].error) {
300-
output ~= "pop si\n";
300+
output ~= "pop di\n";
301301
}
302302
}
303303
}
@@ -320,6 +320,7 @@ class BackendRM86 : CompilerBackend {
320320
output ~= format("jne __func__%s\n", Sanitise("__rm86_exception"));
321321
}
322322
else {
323+
output ~= "mov si, di\n";
323324
CompileReturn(node);
324325
}
325326
}

source/backends/uxn.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class BackendUXN : CompilerBackend {
253253
output ~= format("func__%s\n", node.name.Sanitise());
254254

255255
if (word.error && words[thisFunc].error) {
256-
output ~= "LITr -System/wst DEOr\n";
256+
output ~= "LITr -temp STZr\n";
257257
}
258258
}
259259
}
@@ -275,6 +275,7 @@ class BackendUXN : CompilerBackend {
275275
output ~= format(";func__%s JCN2\n", Sanitise("__uxn_exception"));
276276
}
277277
else {
278+
output ~= ".temp LDZ .System/wst DEO\n";
278279
CompileReturn(node);
279280
}
280281
}

0 commit comments

Comments
 (0)