Implementing the SET bits instructions

This commit is contained in:
Anonymus Raccoon
2020-02-25 22:09:37 +01:00
parent 9e0e712ce0
commit 38045afe15
5 changed files with 77 additions and 20 deletions
+4
View File
@@ -306,6 +306,10 @@ namespace ComSquare::CPU
case Instructions::CLD: this->CLD(); return 2;
case Instructions::CLV: this->CLV(); return 2;
case Instructions::SEC: this->SEC(); return 2;
case Instructions::SED: this->SED(); return 2;
case Instructions::SEI: this->SEI(); return 2;
case Instructions::AND_IM: this->AND(this->_getImmediateAddr()); return 2 + !this->_registers.p.m;
case Instructions::AND_ABS: this->AND(this->_getAbsoluteAddr()); return 4 + !this->_registers.p.m;
case Instructions::AND_ABSl: this->AND(this->_getAbsoluteLongAddr()); return 5 + !this->_registers.p.m;