aboutsummaryrefslogtreecommitdiffgithub
path: root/packages/novice-web/novice-web/index.tsx
blob: 6de52cd118ee85c7a05fbf14a0d4ecf3ab54fc54 (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={'.orig x3000\n; write LC-3 assembly code here\n\nhalt\n.end\n'}
                 debuggerWorkerBundleUrl={DEBUGGER_WORKER_BUNDLE_URL}
                 assemblerWorkerBundleUrl={ASSEMBLER_WORKER_BUNDLE_URL} />,
    document.getElementById('root'),
);