summaryrefslogtreecommitdiff
path: root/addressing.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-20 14:08:13 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-20 14:08:13 +1000
commit1bf33140ce7e858ee7fe1a416e7ebfd586f024b3 (patch)
tree6e909e8f28b6308c8f1a2954e390a26714ac8717 /addressing.h
parentc138759ebf4194a73364a79a9acc87f54dcc73bc (diff)
Call now uses correct addressing
Diffstat (limited to 'addressing.h')
-rw-r--r--addressing.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/addressing.h b/addressing.h
index a179645..d764e8f 100644
--- a/addressing.h
+++ b/addressing.h
@@ -53,6 +53,8 @@ Addressing fAddressGetLength(Addressing addr){
AddData fAddress(Addressing addr, short x) {
AddData ret;
+ // might seperate the rest of these out?
+
// ADDRESS
switch(addr){
@@ -61,6 +63,7 @@ AddData fAddress(Addressing addr, short x) {
case eRelative:
case eImmediate:
case eAccumulator:
+ ret.add = 0x0000;
break;
case eAbsolute:
@@ -201,9 +204,6 @@ AddData fAddress(Addressing addr, short x) {
// Page Boundary
-
-
-
//case &fADC: case &fSBC: case &fLDA: case &fLDX: case &fLDY: case &fEOR: case &fAND: case &fORA: case &fCMP:
if ( current_instruction == &fADC || current_instruction == &fSBC || current_instruction == &fLDA || current_instruction == &fLDX || current_instruction == &fLDY
|| current_instruction == &fEOR || current_instruction == &fAND || current_instruction == &fORA || current_instruction == &fCMP ){
@@ -217,5 +217,6 @@ AddData fAddress(Addressing addr, short x) {
}
}
+ return ret;
}