Skip to content

Commit

Permalink
remove deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
christo committed Dec 25, 2024
1 parent 57a0ee3 commit 6f26320
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/test/machine/Thread.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {expect} from 'chai';
import {LE} from "../../src/machine/core";
import {Thread} from "../../src/machine/Thread";
import {createDisassembler} from "./util";
import {ArrayMemory} from "../../src/machine/Memory";
import {Mos6502} from "../../src/machine/mos6502";
import {FileBlob} from "../../src/machine/FileBlob";
Expand All @@ -12,7 +11,9 @@ describe("thread", () => {
it("records executed instructions", () => {
const contents = [0, 0, 0xea, 0xea]; // 0, 0, NOP, NOP
const memory = new ArrayMemory(contents, LE, true, true);
const d = createDisassembler(contents);
const fb = FileBlob.fromBytes("testblob", contents, LE);
const dm = new DisassemblyMetaImpl(0, 0, 2);
const d = new Disassembler(Mos6502.ISA, fb, dm);
const t = new Thread("test", d, 0, memory);
t.step();
expect(t.getExecuted().length).to.eq(1, "expected single step to have executed one instruction");
Expand Down

0 comments on commit 6f26320

Please sign in to comment.