Added unfinished code to instructions
This commit is contained in:
@@ -9,18 +9,69 @@ namespace spider {
|
||||
|
||||
void CPU::STB() {
|
||||
// TODO: Implement STB
|
||||
fetchOperSrc();
|
||||
fetchOperDst();
|
||||
switch(_size){
|
||||
case 0b00: //byte
|
||||
_dst->_u8 = 1;
|
||||
case 0b01: //short
|
||||
_dst->_u16 = 1;
|
||||
case 0b10: //int
|
||||
_dst->_u32 = 1;
|
||||
case 0b11: //long
|
||||
_dst->_u64 = 1;
|
||||
}
|
||||
(this->*_post)();
|
||||
}
|
||||
|
||||
void CPU::CRB() {
|
||||
// TODO: Implement CRB
|
||||
fetchOperSrc();
|
||||
fetchOperDst();
|
||||
switch(_size){
|
||||
case 0b00: //byte
|
||||
_dst->_u8 = 1;
|
||||
case 0b01: //short
|
||||
_dst->_u16 = 1;
|
||||
case 0b10: //int
|
||||
_dst->_u32 = 1;
|
||||
case 0b11: //long
|
||||
_dst->_u64 = 1;
|
||||
}
|
||||
(this->*_post)();
|
||||
}
|
||||
|
||||
void CPU::TSB() {
|
||||
// TODO: Implement TSB
|
||||
fetchOperSrc();
|
||||
fetchOperDst();
|
||||
switch(_size){
|
||||
case 0b00: //byte
|
||||
_dst->_u8 = 1;
|
||||
case 0b01: //short
|
||||
_dst->_u16 = 1;
|
||||
case 0b10: //int
|
||||
_dst->_u32 = 1;
|
||||
case 0b11: //long
|
||||
_dst->_u64 = 1;
|
||||
}
|
||||
(this->*_post)();
|
||||
}
|
||||
|
||||
void CPU::BOOL() {
|
||||
// TODO: Implement BOOL
|
||||
fetchOperDst();
|
||||
switch(_size){
|
||||
case 0b00: //byte
|
||||
_dst->_u8 = 1;
|
||||
case 0b01: //short
|
||||
_dst->_u16 = 1;
|
||||
case 0b10: //int
|
||||
_dst->_u32 = 1;
|
||||
case 0b11: //long
|
||||
_dst->_u64 = 1;
|
||||
}
|
||||
(this->*_post)();
|
||||
}
|
||||
|
||||
void CPU::NOT() {
|
||||
|
||||
Reference in New Issue
Block a user