mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-05-28 20:41:28 +00:00
PC increment fixes
This commit is contained in:
parent
1b9312ac97
commit
a4fd247e5c
|
@ -225,7 +225,7 @@ class Cmos(bool strict, bool cumulative) : Cpu!(strict, cumulative)
|
||||||
void opcode5C()
|
void opcode5C()
|
||||||
{
|
{
|
||||||
readByteOperand();
|
readByteOperand();
|
||||||
peek(programCounter);
|
peek(programCounter++);
|
||||||
peek(0xFF00 | operand1);
|
peek(0xFF00 | operand1);
|
||||||
peek(0xFFFF);
|
peek(0xFFFF);
|
||||||
peek(0xFFFF);
|
peek(0xFFFF);
|
||||||
|
|
|
@ -263,7 +263,7 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative)
|
||||||
override void opcode8B()
|
override void opcode8B()
|
||||||
{
|
{
|
||||||
// unstable
|
// unstable
|
||||||
readVal = operand1 = readFinal(programCounter);
|
readVal = operand1 = readFinal(programCounter++);
|
||||||
|
|
||||||
version(Atari8Bit)
|
version(Atari8Bit)
|
||||||
{
|
{
|
||||||
|
@ -350,7 +350,7 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative)
|
||||||
/* SBX #$$ */
|
/* SBX #$$ */
|
||||||
override void opcodeCB()
|
override void opcodeCB()
|
||||||
{
|
{
|
||||||
readVal = operand1 = readFinal(programCounter);
|
readVal = operand1 = readFinal(programCounter++);
|
||||||
xIndex &= accumulator;
|
xIndex &= accumulator;
|
||||||
flag.zero_ = flag.negative_ = compare(xIndex, readVal);
|
flag.zero_ = flag.negative_ = compare(xIndex, readVal);
|
||||||
}
|
}
|
||||||
|
@ -358,7 +358,7 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative)
|
||||||
/* SBC #$$ */
|
/* SBC #$$ */
|
||||||
override void opcodeEB()
|
override void opcodeEB()
|
||||||
{
|
{
|
||||||
readVal = operand1 = readFinal(programCounter);
|
readVal = operand1 = readFinal(programCounter++);
|
||||||
if (flag.decimal) dec_subWithCarry(readVal);
|
if (flag.decimal) dec_subWithCarry(readVal);
|
||||||
else hex_subWithCarry(readVal);
|
else hex_subWithCarry(readVal);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user