Skip to content

Commit

Permalink
ASL opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jul 1, 2024
1 parent b166d7f commit c9b8d03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/huc6280_opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ void HuC6280::OPCode0x05()

void HuC6280::OPCode0x06()
{
// ASL $n
// OK
// ASL ZZ
OPCodes_ASL_Memory(ZeroPageAddressing());
}

Expand All @@ -87,6 +88,7 @@ void HuC6280::OPCode0x09()

void HuC6280::OPCode0x0A()
{
// OK
// ASL A
OPCodes_ASL_Accumulator();
}
Expand All @@ -113,7 +115,8 @@ void HuC6280::OPCode0x0D()

void HuC6280::OPCode0x0E()
{
// ASL $nn
// OK
// ASL hhll
OPCodes_ASL_Memory(AbsoluteAddressing());
}

Expand Down Expand Up @@ -165,7 +168,8 @@ void HuC6280::OPCode0x15()

void HuC6280::OPCode0x16()
{
// ASL $n,X
// OK
// ASL ZZ,X
OPCodes_ASL_Memory(ZeroPageAddressing(&m_X));
}

Expand Down Expand Up @@ -217,7 +221,8 @@ void HuC6280::OPCode0x1D()

void HuC6280::OPCode0x1E()
{
// ASL $nn,X
// OK
// ASL hhll,X
OPCodes_ASL_Memory(AbsoluteAddressing(&m_X));
}

Expand Down
2 changes: 1 addition & 1 deletion src/huc6280_timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const u8 k_opcode_tstates[256] =
{
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
/* 0x00 */ 7, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6,
/* 0x00 */ 7, 6, 2, 8, 3, 3, 6, 5, 3, 2, 2, 2, 4, 4, 7, 6,
/* 0x10 */ 2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7,
/* 0x20 */ 6, 7, 2, 8, 3, 4, 5, 5, 4, 2, 2, 2, 4, 5, 6, 6,
/* 0x30 */ 2, 7, 7, 8, 4, 4, 6, 6, 2, 5, 2, 7, 4, 5, 7, 7,
Expand Down

0 comments on commit c9b8d03

Please sign in to comment.