diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-12-01 20:12:52 +1100 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-12-01 20:12:52 +1100 |
commit | 0ba0d793ca60189fa8378399d32d6299a1dd9db5 (patch) | |
tree | 8687061b7e179d2d2d4ff010201a401a0b3e8cad /src/cpu | |
parent | b1c9034b2f91ba8f12ae2308196f4de7fa7359bd (diff) |
fixed CR with terminal & VRAM
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/instructions.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/instructions.c b/src/cpu/instructions.c index cb80855..da093ec 100644 --- a/src/cpu/instructions.c +++ b/src/cpu/instructions.c @@ -44,7 +44,7 @@ void fSTY(Addressing addr, address val){ // Arithmetic Instructions void fADC(Addressing addr, address val){ - int buffer = acc + idata.value; + int buffer = (int)acc + idata.value; SetFlagV(buffer, acc); if (buffer > 255) @@ -139,8 +139,7 @@ void fJMP(Addressing addr, address val){ PC = val; PC -= 2; } -void fBCC(Addressing addr, address val){ //FINISH ALL BRANCH INSTRUCTIONS - //signed char val down to BVC +void fBCC(Addressing addr, address val){ if (getFlag(flag_C) == 0) PC += (char)val; } |