mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-10 10:29:43 +00:00
More sharing of common implementation on the MC6809.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
83497b0b9e
commit
dbc3e192d7
@ -793,9 +793,8 @@ uint8_t EightBit::mc6809::asr(uint8_t operand) {
|
||||
}
|
||||
|
||||
uint8_t EightBit::mc6809::clr() {
|
||||
clearFlag(CC(), NF | VF | CF);
|
||||
setFlag(CC(), ZF);
|
||||
return 0;
|
||||
clearFlag(CC(), CF);
|
||||
return through((uint8_t)0U);
|
||||
}
|
||||
|
||||
void EightBit::mc6809::cmp(const uint8_t operand, const uint8_t data) {
|
||||
@ -840,10 +839,8 @@ uint8_t EightBit::mc6809::dec(const uint8_t operand) {
|
||||
return result;
|
||||
}
|
||||
|
||||
uint8_t EightBit::mc6809::eor(uint8_t operand, const uint8_t data) {
|
||||
clearFlag(CC(), VF);
|
||||
adjustNZ(operand ^= data);
|
||||
return operand;
|
||||
uint8_t EightBit::mc6809::eor(const uint8_t operand, const uint8_t data) {
|
||||
return through((uint8_t)(operand ^ data));
|
||||
}
|
||||
|
||||
uint8_t& EightBit::mc6809::referenceTransfer8(const int specifier) {
|
||||
@ -929,10 +926,8 @@ uint8_t EightBit::mc6809::neg(uint8_t operand) {
|
||||
return operand;
|
||||
}
|
||||
|
||||
uint8_t EightBit::mc6809::orr(uint8_t operand, const uint8_t data) {
|
||||
clearFlag(CC(), VF);
|
||||
adjustNZ(operand |= data);
|
||||
return operand;
|
||||
uint8_t EightBit::mc6809::orr(const uint8_t operand, const uint8_t data) {
|
||||
return through((uint8_t)(operand | data));
|
||||
}
|
||||
|
||||
void EightBit::mc6809::psh(register16_t& stack, const uint8_t data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user