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 { get reachedEnd(): boolean {
return this._programCounter === this._code.length; return this._programCounter === this._code.length;
} }

View file

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