diff options
author | WlodekM <[email protected]> | 2025-04-03 09:56:21 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-04-03 09:56:21 +0300 |
commit | 0424cc4e5b5aeffd56f680f36333a4a27fc43a76 (patch) | |
tree | 797892022ad7ebb78753e56a00b541c8379a6747 /instructions/BRA.ts | |
parent | 1ee63e391385e2caa47509b36ff79299f02a97c5 (diff) |
start working on some 65c02 stuff
Diffstat (limited to 'instructions/BRA.ts')
-rw-r--r-- | instructions/BRA.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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 |