Uninitialized canvas display

This commit is contained in:
2023-02-01 20:31:06 -06:00
parent 910e4b856b
commit 5259d6ee8c
7 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export default function({ children, width = 20 }) {
const onChangeSrc = useCallback((e) => setSrc(e.target.value), []) // Callback for the textarea
const [binary, setBinary] = useState(null) // The assembled binary
const [sourceMap, setSourceMap] = useState(null) // A map from byte address to line number
const [cpu, setCpu] = useState(new WasmCPU()) // The actual CPU emulator itself
const [cpu, _setCpu] = useState(new WasmCPU()) // The actual CPU emulator itself
const [activeLine, setActiveLine] = useState(null) // The (0-based) index of the
// Update which line is highlighted. This should be called in most button callbacks.