added operations that still need to be implemented to the TODO and fixed a few errors in the opcode map

This commit is contained in:
Preston Skupinski 2011-05-22 20:07:29 -04:00
parent bd89ee30e1
commit 4998c9c4dc
2 changed files with 25 additions and 5 deletions

26
TODO
View File

@ -7,13 +7,33 @@ Testing:
- Tests needed for T** transfer operations
- Tests needed for interrupt support
- Tests needed for the numerous other operations added
Operations Not Yet Implemented:
- 0x04 : TSB direct page
- 0x0c : TSB absolute
- 0x14 : TRB direct page
- 0x1c : TRB absolute
- 0x24 : BIT direct page
- 0x2c : BIT absolute
- 0x34 : BIT direct page indexed x
- 0x3c : BIT absolute indexed x
- 0x42 : WDM
- 0x5c : JMP absolute long
- 0x7c : JMP absolute indexed x indirect
- 0x89 : BIT immediate
- 0x9a : TXS
- 0xba : TSX
- 0xcb : WAI
- 0xd6 : DEC direct page indexed x
- 0xdb : STP
- 0xdc : JMP absolute indirect long
- 0xde : DEC absolute indexed x
- 0xf6 : INC direct page indexed x
- 0xfc : JSR absolute indexed x indirect
- 0xfe : INC absolute indexed x
CPU:
- Implement complex addressing modes for many operations
- More work on interrupts
- Decimal mode support
- Better emulation mode support
- Have each operation return the number of cycles used by the execute function.
- Implement the rest of the missing operations.
- Optimization
Memory:
- Bank wrapping or not wrapping for certain addressing modes and with certain

4
cpu.js
View File

@ -123,7 +123,7 @@ function CPU_65816() {
0xf1 : SBC_direct_page_indirect_indexed_y,
0xfd : SBC_absolute_indexed_x,
0xf9 : SBC_absolute_indexed_y,
0xe1 : SBC_direct_page_indexed_x,
0xf5 : SBC_direct_page_indexed_x,
0xe3 : SBC_stack_relative,
0xf3 : SBC_stack_relative_indirect_indexed_y,
0xc9 : CMP_const, 0xc5 : CMP_direct_page,
@ -165,7 +165,7 @@ function CPU_65816() {
0x17 : ORA_direct_page_indirect_long_indexed_y,
0x11 : ORA_direct_page_indirect_indexed_y,
0x1d : ORA_absolute_indexed_x,
0x1f : ORA_absolute_indexed_y,
0x19 : ORA_absolute_indexed_y,
0x15 : ORA_direct_page_indexed_x,
0x03 : ORA_stack_relative,
0x13 : ORA_stack_relative_indirect_indexed_y,