summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/instructions.c5
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;
}