Commit Graph

48 Commits

Author SHA1 Message Date
jborza 3ecf732beb fixed page wraparound for indirect y addressing + wraparound test for LDA_INDY 2019-05-07 21:44:37 +02:00
jborza c4b2b70d96 refactored the read_word function to allow for wrap 2019-05-07 21:04:04 +02:00
jborza d0e5449ae1 added a test for a wraparound at indirect X addressing 2019-05-07 20:24:02 +02:00
jborza 6dec18dada fixed ROR + added ROR tests 2019-05-07 15:39:43 +02:00
jborza dc88cf14e6 fixed a bug setting the carry flag in ASL 2019-05-07 14:09:38 +02:00
jborza 4186df1468 RTI implementation fix - applying the status register 2019-05-04 16:03:54 +02:00
jborza 295f73e874 split test framework code into test_framework.c+h, leaving test6502 just for tests 2019-05-04 14:19:33 +02:00
jborza 836a076d1c fixed PHP flag handling + test 2019-05-04 14:11:39 +02:00
jborza 8754aaef9f fixed flag handling (to none) in TXS 2019-05-01 23:30:46 +02:00
jborza 9c361533d0 fixed Z flag handling in AND, ORA, EOR 2019-05-01 23:15:43 +02:00
jborza de70338f49 attempted to fix flag handling of PLP 2019-05-01 22:59:15 +02:00
jborza 5ae9274ab9 correct way to clear the B flag in PLP 2019-05-01 22:15:03 +02:00
jborza adb70b62c3 fixed status register handling in PLP (bit 4 now not read) 2019-05-01 21:10:12 +02:00
jborza 2b52c43605 attempt to run nestest 2019-04-29 06:37:56 +02:00
jborza 6df5c3f7e6 fixed RTS 2019-04-27 19:22:06 +02:00
jborza 682cde7f7d added flags test to PLA 2019-04-27 13:18:36 +02:00
jborza 4ad8a47739 implemented the remaining branching instructions 2019-04-27 13:02:04 +02:00
jborza b4e260d3d4 fixed branching tests 2019-04-27 12:54:40 +02:00
jborza ec702335fa added test for rest of branch instructions 2019-04-27 12:53:39 +02:00
jborza 2ddcf62212 fixed zero flag handling in LDA, LDX, LDY
added BEQ+test
split memory function to a separate module
2019-04-27 12:43:15 +02:00
jborza a1259fa544 fixed the carry flag in SBC 2019-04-26 12:14:25 +02:00
jborza 0d932b7f61 improved SBC tests (still failing) and compared the expected results with another emulator 2019-04-26 11:53:10 +02:00
jborza 6b6fcd677b longer test for JSR and RTS 2019-04-26 11:28:20 +02:00
jborza 047efec29c BRK test 2019-04-26 11:24:18 +02:00
jborza 1e5809e72f Merge branch 'master' of https://github.com/jborza/emu6502 2019-04-26 10:45:06 +02:00
jborza e40450a740 SBC tests and code fix 2019-04-26 10:44:57 +02:00
jborza a4bc64ec43 JSR and RTS 2019-04-26 07:22:42 +02:00
jborza b53eef7d91 fixed ADC tests 2019-04-22 10:17:26 +02:00
jborza 1845eb4692 BIT implementation + tests
ADC, SBC fixes
2019-04-21 15:31:53 +02:00
jborza 411d4e8241 implemented SBC, ASL 2019-04-19 11:38:52 +02:00
jborza 1c4e2f45b5 added tests for CPX, CPY 2019-04-19 10:36:14 +02:00
jborza df2f125588 fixed pop_byte_from_stack, fixed JMP_IND, added tests for CMP 2019-04-19 10:34:07 +02:00
jborza 285bb840af JMP + tests, PHP_PLP tests 2019-04-17 19:46:56 +02:00
jborza 4b691d3414 TXS, TSX tests fixed 2019-04-16 22:47:38 +02:00
jborza e6a8c7934c PHA, PLA, TXS, TYS, TSX, TSY + tests 2019-04-16 22:46:28 +02:00
jborza ee71eae5e5 STA tests 2019-04-16 19:20:19 +02:00
jborza 891bb328a4 EOR + tests 2019-04-16 00:03:48 +02:00
jborza 1ebb7da6c3 CLC, SEC, CLD, SEC, CLI, SEI, CLV + tests 2019-04-15 23:44:07 +02:00
jborza 99eee8b5f4 INC, DEC + tests 2019-04-15 23:34:21 +02:00
jborza 5000f27a0f TXA, TAX, TYA, TAY tests 2019-04-15 19:36:53 +02:00
jborza f1e79589f3 tests for INX, INY, DEX, DEY 2019-04-14 23:41:15 +02:00
jborza c034141ee5 STX, STY + tests 2019-04-14 23:05:37 +02:00
jborza 43d3d11f31 LDY instruction + tests 2019-04-14 22:20:32 +02:00
jborza bcf8632cbc added tests for LDX 2019-04-14 22:01:32 +02:00
jborza 8dcea919ed AND instructions and tests 2019-04-14 20:45:24 +02:00
jborza 9f18c3ad71 Added tests for ORA instructions 2019-04-14 14:15:11 +02:00
jborza da24007a36 code cleanup 2019-04-14 13:24:02 +02:00
jborza 65f7f959f9 introduced test6502 module for tests 2019-04-14 12:39:56 +02:00