aboutsummaryrefslogtreecommitdiffgithub
path: root/packages/novice-web/novice-web/index.tsx
blob: 213b51fc5ce54023728e11bcefd402fc617222fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { GuiDebugger } from './components/GuiDebugger';

const DEBUGGER_WORKER_BUNDLE_URL = 'dist/debuggerWorker.bundle.js';
const ASSEMBLER_WORKER_BUNDLE_URL = 'dist/assemblerWorker.bundle.js';

ReactDOM.render(
    <GuiDebugger isaName='lc3'
                 initialAssemblyCode={'; write LC-3 assembly code here\n'}
                 debuggerWorkerBundleUrl={DEBUGGER_WORKER_BUNDLE_URL}
                 assemblerWorkerBundleUrl={ASSEMBLER_WORKER_BUNDLE_URL} />,
    document.getElementById('root'),
);