aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/simulator/cli-debugger.test.ts
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2019-02-05 23:00:58 -0500
committerAustin Adams <git@austinjadams.com>2019-02-05 23:00:58 -0500
commita1cf7626f6971c1f80a8511608ee5c701de2ccb4 (patch)
treef851e61dacff0fe311d0418ec8ffb6f857fdc891 /novice/simulator/cli-debugger.test.ts
parent699bb01c1d7036bae89423cc4d5b24552cec6fbe (diff)
downloadnovice-a1cf7626f6971c1f80a8511608ee5c701de2ccb4.tar.gz
novice-a1cf7626f6971c1f80a8511608ee5c701de2ccb4.tar.xz
Try to optimize symbol lookups in debugger
Diffstat (limited to 'novice/simulator/cli-debugger.test.ts')
-rw-r--r--novice/simulator/cli-debugger.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/novice/simulator/cli-debugger.test.ts b/novice/simulator/cli-debugger.test.ts
index e4a24f7..3c4db48 100644
--- a/novice/simulator/cli-debugger.test.ts
+++ b/novice/simulator/cli-debugger.test.ts
@@ -210,8 +210,8 @@ describe('cli debugger', () => {
dbg.store(0x3003, 0x1264); // add r1, r1, 4
dbg.store(0x3004, 0xf025); // halt
- Object.assign(dbg.getSymbTable(), {
- tim_brown: 0x3002
+ dbg.setSymbols({
+ tim_brown: 0x3002,
});
runCmd('b tim_brown');