We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaa061 commit f0b3243Copy full SHA for f0b3243
src/components/ProgramLoader/Assembly.tsx
@@ -62,6 +62,8 @@ function assemblyFromInputProgram(initialState: InitialState, program: number[])
62
l = l.replace(/^(.*)\/\/.*/, "$1");
63
// fix unary minus
64
l = l.replace(/= -/, "= 0 -");
65
+ // replace `invalid` instructions with a comment
66
+ l = l.replace("invalid", "// invalid");
67
return l;
68
});
69
0 commit comments