From 0424cc4e5b5aeffd56f680f36333a4a27fc43a76 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Thu, 3 Apr 2025 09:56:21 +0300 Subject: start working on some 65c02 stuff --- instructions/BRA.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 instructions/BRA.ts (limited to 'instructions') diff --git a/instructions/BRA.ts b/instructions/BRA.ts new file mode 100644 index 0000000..11d32b8 --- /dev/null +++ b/instructions/BRA.ts @@ -0,0 +1,6 @@ +import type The65c02 from "../65c02.ts"; + +export default function (this: The65c02, mode: string) { + const location = this.getAddr(mode, ['relative', 'absolute']); + this.programCounter.set(location) +} \ No newline at end of file -- cgit 1.4.1-2-gfad0