small changes

This commit is contained in:
nora 2021-06-25 16:58:53 +02:00
parent 0a8ecd3a92
commit 206e0293ec
2 changed files with 3 additions and 7 deletions

View file

@ -114,10 +114,6 @@ export default class Interpreter {
}
}
public prev() {
// - will add some day
}
get reachedEnd(): boolean {
return this._programCounter === this._code.length;
}

View file

@ -12,9 +12,9 @@ const CodeDisplay = ({code, index}: CodeDisplayProps) => {
return (
<div className="code-display-wrapper">
<span>{firstCodePart}</span>
<span style={{backgroundColor: "red"}}>{code[index] || " "}</span>
<span>{secondCodePart}</span>
<code>{firstCodePart}</code>
<code style={{backgroundColor: "red"}}>{code[index] || " "}</code>
<code>{secondCodePart}</code>
</div>
);
};