Skip to content

Commit

Permalink
move InstructionSet and Op to asm package
Browse files Browse the repository at this point in the history
  • Loading branch information
christo committed Dec 25, 2024
1 parent eb8a8e4 commit 5c56bb4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/src/machine/Thread.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Disassembler} from "./asm/Disassembler";
import {Addr, Endian} from "./core.ts";
import {OpSemantics} from "./Op.ts";
import {OpSemantics} from "./asm/Op.ts";
import {Memory} from "./Memory.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/machine/asm/Assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Addr} from "../core.ts";
import {Dialect} from "./Dialect.ts";
import {InstructionLike} from "./instructions.ts";
import {ParserState} from "./DefaultDialect.ts";
import {InstructionSet} from "../InstructionSet.ts";
import {InstructionSet} from "./InstructionSet.ts";

/**
* Syntax-independent stateful assembler, parametised by {@link InstructionSet}
Expand Down
4 changes: 2 additions & 2 deletions client/src/machine/asm/Disassembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {ByteDeclaration, Edict, FullInstructionLine, InstructionLike, SymDef} fr
import * as R from "ramda";
import {LabelsComments} from "./asm.ts";
import {DisassemblyMeta} from "./DisassemblyMeta.ts";
import {InstructionSet} from "../InstructionSet.ts";
import {InstructionSet} from "./InstructionSet.ts";
import {Memory} from "../Memory.ts";
import {OpSemantics} from "../Op.ts";
import {OpSemantics} from "./Op.ts";


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {assertByte} from "./core.ts";
import {AddressingMode, Cycles, Instruction, InstructionCall} from "./mos6502.ts";
import {assertByte} from "../core.ts";
import {AddressingMode, Cycles, Instruction, InstructionCall} from "../mos6502.ts";
import {Op} from "./Op.ts";

/**
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions client/src/machine/mos6502.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/

import {Addr, assertByte, Byteable, unToSigned} from "./core.ts";
import {InstructionSet} from "./InstructionSet.ts";
import {Op, OpSemantics} from "./Op.ts";
import {InstructionSet} from "./asm/InstructionSet.ts";
import {Op, OpSemantics} from "./asm/Op.ts";

type M6502OperandLength = 0 | 1 | 2;

Expand Down

0 comments on commit 5c56bb4

Please sign in to comment.