aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Isom <kyle@tyrfingr.is>2014-01-29 10:22:16 -0700
committerKyle Isom <kyle@tyrfingr.is>2014-01-29 10:22:16 -0700
commit0e08f6cfd4cc6a2fd6011cef73bfcc038f8304b7 (patch)
tree48a855d82391db3252337ce0c2fe007ae270f048
parent364a3934b37f4a52168cda4523f6b1235b99e13d (diff)
downloadk6502-0e08f6cfd4cc6a2fd6011cef73bfcc038f8304b7.tar.gz
k6502-0e08f6cfd4cc6a2fd6011cef73bfcc038f8304b7.tar.bz2
k6502-0e08f6cfd4cc6a2fd6011cef73bfcc038f8304b7.zip
Fix typo'd addressing constants
-rw-r--r--src/cpu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu.cc b/src/cpu.cc
index c4a665d..0fa13c1 100644
--- a/src/cpu.cc
+++ b/src/cpu.cc
@@ -850,13 +850,13 @@ CPU::read_addr2(uint8_t mode)
addr = this->read_immed();
addr += ((uint16_t)this->read_immed() << 8);
break;
- case C10_MODE_X:
+ case C10_MODE_ZPX:
addr = (uint8_t)(this->read_immed() + this->x);
break;
- case C10_MODE_Y:
+ case C10_MODE_ZPY:
addr = (uint8_t)(this->read_immed() + this->y);
break;
- case C10_MODE_ABS_X:
+ case C10_MODE_ABSX:
addr = this->read_immed();
addr += ((uint16_t)this->read_immed() << 8);
addr += this->x;