1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-12 10:30:23 +00:00
Commit Graph

57 Commits

Author SHA1 Message Date
Radosław Kujawa
1ec075518c Split assembler-related things into separate file. 2018-04-27 14:07:42 +02:00
Radosław Kujawa
8ca86735df Add tests for BBRx, BBSx. 2018-04-16 12:27:53 +02:00
Radosław Kujawa
7445c275e6 Add test cases for ROR and ROL.
Too old to ROR and to ROL.
2018-04-13 12:26:06 +02:00
Radosław Kujawa
fae3445e58 Add test cases for TRB and TSB. 2018-04-12 15:28:47 +02:00
Radosław Kujawa
e5448f50eb Fix expected PC address. 2018-04-12 15:13:48 +02:00
Radosław Kujawa
578955e4a1 Add test case for invalid opcode handling. 2018-04-12 11:40:33 +02:00
Radosław Kujawa
fe94c747e5 Add test case for signed comparison. 2018-04-09 15:00:02 +02:00
Radosław Kujawa
3c684fbf2c Fix zero page wrap for indexed indirect mode. 2018-03-31 15:03:22 +02:00
Radosław Kujawa
7c4d6cea3f Fix indirect indexed with Y addressing.
Also fix test case for this. Problem wasn't detected, because test case
was broken too.
2018-03-31 12:38:45 +02:00
Radosław Kujawa
4f299a6f36 Also fix zero page wrap for bus reads. 2018-03-28 14:18:50 +02:00
Radosław Kujawa
390bbdc14e Add test cases for LSR and zero page wrap. 2018-03-28 13:47:18 +02:00
Radosław Kujawa
0b2be69481 Add test case for ASL. 2018-03-28 13:18:44 +02:00
Radosław Kujawa
1dcaa4c53f Adjust test to chnages in bus code (due to device subsystem intro). 2017-02-20 21:30:23 +01:00
Radosław Kujawa
90ddf4b400 Fix tests for CMP, CPY, CPX. Carry flag test was inverted, duh! 2017-02-15 22:06:04 +01:00
Radosław Kujawa
23492e6533 Refactor due to change in rk65c02_dump_regs. 2017-02-15 21:35:27 +01:00
Radosław Kujawa
9db9d1307b Add tests for SMBx and RMBx sets of instructions. 2017-02-13 22:04:59 +01:00
Radosław Kujawa
f0b1294897 Add test case for SBC in decimal mode. 2017-02-12 23:28:06 +01:00
Radosław Kujawa
78b6ddc286 More comprehensive decimal ADC test. 2017-02-12 23:11:46 +01:00
Radosław Kujawa
7dd511b7dd Implement much better test case for decimal mode. 2017-02-11 22:36:57 +01:00
Radosław Kujawa
630daee702 Premilinary support for decimal mode.
While here add SED emulation. Implement BCD support for ADC instruction.
2017-02-10 22:23:06 +01:00
Radosław Kujawa
15c864a339 BIT does not affect the overflow flag in immediate mode - adjust test. 2017-02-05 21:25:09 +01:00
Radosław Kujawa
8008d045d3 Add simpler test for ADC/SBC flags.
The name is unfortunate though.
2017-02-02 22:55:21 +01:00
Radosław Kujawa
a72a2c0872 Add test cases for 16-bit ADC and SBC. 2017-02-02 21:16:31 +01:00
Radosław Kujawa
f2efb116b4 Add minimal SBC test. 2017-02-02 16:22:16 +01:00
Radosław Kujawa
faa824e306 Implement emulation of ADC, plug the overflow test.
While here fix numerous test cases, lol.
2017-01-31 23:08:23 +01:00
Radosław Kujawa
bf01ceb4cf Add test cases for branches. 2017-01-29 21:18:01 +01:00
Radosław Kujawa
bb3f77ec7f Add JSR and RTS emulation and tests. 2017-01-29 11:47:34 +01:00
Radosław Kujawa
4a8fbfbaeb Add CPX and CPY emulation and test cases. 2017-01-28 14:04:20 +01:00
Radosław Kujawa
3640a162a3 Add CMP emulation and test cases. 2017-01-28 13:26:51 +01:00
Radosław Kujawa
f3205e7272 Add CLI and SEI emulation and test case. 2017-01-28 11:19:34 +01:00
Radosław Kujawa
ee66f9c78c Add emulation and test for CLV instruction. 2017-01-28 11:12:25 +01:00
Radosław Kujawa
f66e986cef Test indirect modes of JMP. 2017-01-28 00:11:16 +01:00
Radosław Kujawa
8d2d694158 Implement (partial) JMP emulation and basic test for it. 2017-01-27 22:28:33 +01:00
Radosław Kujawa
ca291b0336 IRQ disable flag is present by default after CPU boot. 2017-01-27 12:31:20 +01:00
Radosław Kujawa
c1a63b011f Use srcdir config variable to obtain location of ROM files.
This fixes "kyua test".
2017-01-27 12:12:00 +01:00
Radosław Kujawa
1f3b61bec8 Implement test cases for DEC instruction. 2017-01-27 11:43:15 +01:00
Radosław Kujawa
db75a9becc Add test cases for INC instruction. 2017-01-27 11:29:17 +01:00
Radosław Kujawa
2ec6cb67ae Split ROM starting function into separate file.
It will also be used for other test programs than test_emulation.
2017-01-26 13:11:37 +01:00
Radosław Kujawa
13ef3e2d08 Add PHX, PLX, PHY, PLY emulation and test cases. 2017-01-25 13:14:00 +01:00
Radosław Kujawa
acc0fad32e Add emulation of BIT instruction and test cases for it. 2017-01-25 10:10:00 +01:00
Radosław Kujawa
a570afb007 Add STA test cases for all addressing modes. 2017-01-24 22:18:52 +01:00
Radosław Kujawa
3a4a0a06d3 Add ORA tests, for all addressing modes. 2017-01-24 16:37:55 +01:00
Radosław Kujawa
b047c4ff81 Add test cases for TAX, TAY, TXA, TYA. 2017-01-24 12:55:46 +01:00
Radosław Kujawa
09f0a828e3 Add test cases for LDA addressing modes absolute X, absolute Y. 2017-01-23 16:33:03 +01:00
Radosław Kujawa
3cbede06f8 Add test for LDA with absolute addressing. 2017-01-23 10:28:44 +01:00
Radosław Kujawa
5eede9333b Add emulation of PHP, PLP instructions and test cases for them. 2017-01-22 23:01:24 +01:00
Radosław Kujawa
fb7d4b28e7 Add DEX, DEY emulation and test cases for them. 2017-01-22 22:35:50 +01:00
Radosław Kujawa
52247f0ce4 Implement CLC, SEC and test for them. 2017-01-22 13:50:04 +01:00
Radosław Kujawa
473e0e2636 Add INX, INY emulation and test cases.
Some comments while here.
2017-01-22 13:07:21 +01:00
Radosław Kujawa
c7633feb87 Add STZ emulation. 2017-01-21 21:46:35 +01:00