diff options
author | WlodekM <[email protected]> | 2025-04-03 12:28:21 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-04-03 12:28:21 +0300 |
commit | c62e133afb34fc38445af7bbe61e88cf45e9a7e3 (patch) | |
tree | efc9a0517739c58514c5b87ca3333867fd1bc0eb /65c02.ts | |
parent | 570bb71bee1042d656cc121b45598bb1198e2df4 (diff) |
it works, holy shit
Diffstat (limited to '65c02.ts')
-rw-r--r-- | 65c02.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/65c02.ts b/65c02.ts index 9d286d9..f1368a9 100644 --- a/65c02.ts +++ b/65c02.ts @@ -288,7 +288,7 @@ export default class The65c02 { this.programCounter.increment() const neg = offset.bit(7); offset.setBit(7, false) - return this.programCounter.num() + (offset.num() * (neg ? -1 : 1)) + return this.programCounter.num() + (offset.num() + (neg ? -128 : 0)) case 'zero-page': return this.getZPAddr() case 'zero-page, X-indexed': |