1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-26 19:29:33 +00:00
Commit Graph

191 Commits

Author SHA1 Message Date
Radosław Kujawa
0cbbce4eeb Fix operands fetching for zero page relative addressing. 2017-02-13 09:37:11 +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
7f1c27af75 Fix carry flag handling for SBC. 2017-02-12 23:27:36 +01:00
Radosław Kujawa
78b6ddc286 More comprehensive decimal ADC test. 2017-02-12 23:11:46 +01:00
Radosław Kujawa
23105b4861 Hopefully fix decimal mode handling. Hopefully. 2017-02-12 22:56:07 +01:00
Radosław Kujawa
ce5330dfac Also test assemble_single_implied. 2017-02-12 21:54:39 +01:00
Radosław Kujawa
8f4900a877 Add simplified assemble_single_implied for implied addressing mode. 2017-02-12 21:54:07 +01:00
Radosław Kujawa
0fc79103f8 Well, once again... 2017-02-12 21:51:20 +01:00
Radosław Kujawa
1995569ec1 Fix prototypes for assembler functions. 2017-02-12 21:50:16 +01:00
Radosław Kujawa
0bd7b85dea Implement simpler to use assembly mode, straight to bus.
While here refactor existing assembly functions.
2017-02-12 16:47:06 +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
40af913644 Neat logo. 2017-02-09 22:25:38 +01:00
Radosław Kujawa
4c7a15f524 Add emulation of WAI instruction. 2017-02-09 21:53:45 +01:00
Radosław Kujawa
5cca703020 Add RTI emulation and test case. 2017-02-08 15:55:39 +01:00
Radosław Kujawa
d29be055f9 Add BRK interrupt test. 2017-02-07 21:23:31 +01:00
Radosław Kujawa
299b7ee7d8 Add functions to dump stack.
Always useful.
2017-02-06 23:16:00 +01:00
Radosław Kujawa
442c8dc3df Add instruction stepping test.
That was written some time ago but forgot to plug it into test suite.
2017-02-06 22:05:16 +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
272c4d0b7b BIT instruction does not affect overflow flag in immediate mode. 2017-02-04 22:07:56 +01:00
Radosław Kujawa
ac48e5435f Add preliminary support for interrupts. 2017-02-04 21:44:13 +01:00
Radosław Kujawa
4ed2016621 Add test case for bus_load_buf(). 2017-02-03 22:37:48 +01:00
Radosław Kujawa
51b47d707b Set reason for stopping the emulation when stepping. 2017-02-03 22:21:43 +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
a255b093e9 Fix overflow flag for SBC. 2017-02-02 22:54:34 +01:00
Radosław Kujawa
1b936f087e Rename... to something more elaborate sounding.
This test case is probably way too complex.
2017-02-02 21:47:20 +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
1f8db85688 Fix pointer precedence. Should resolve #1. 2017-02-02 20:58:30 +01:00
Radosław Kujawa
7f7fdad8dc Enable GDB-specific debug symbols. 2017-02-02 16:22:53 +01:00
Radosław Kujawa
624b73159f Include assembling tests in Kuya test suite. 2017-02-02 16:22:27 +01:00
Radosław Kujawa
f2efb116b4 Add minimal SBC test. 2017-02-02 16:22:16 +01:00
Radosław Kujawa
77ce27e4fc Try to support assembling multi byte instructions. 2017-02-02 15:41:29 +01:00
Radosław Kujawa
09a92740e9 Add test case for assembling functions. 2017-02-02 14:46:10 +01:00
Radosław Kujawa
9eff6d535b Add functions to assemble mnemonics into machine code (into buffer). 2017-02-02 14:45:06 +01:00
Radosław Kujawa
941036615e Add some null pointer checking asserts. 2017-02-02 14:43:44 +01:00
Radosław Kujawa
6711a8fe11 Fix bus space array indexing. Makes bus loading from buffer work. 2017-02-02 14:43:02 +01:00
Radosław Kujawa
3075ed87fa Add ability to load things onto bus from buffer. 2017-02-02 12:06:41 +01:00
Radosław Kujawa
eb7179f89a Fix emulation function for nop.
Problem introduced by s/'ing mindlessly.
2017-02-02 11:51:32 +01:00
Radosław Kujawa
4e3721ef85 Mark invalid instructions as invalid, not as nops. 2017-02-02 11:23:30 +01:00
Radosław Kujawa
249509fad0 Clean up unused function. 2017-02-02 11:00:32 +01:00
Radosław Kujawa
a153b4e77f Also test overflow for SBC. 2017-02-02 00:03:27 +01:00
Radosław Kujawa
8e732f3b94 Make SBC somewhat less broken. 2017-02-01 22:15:16 +01:00
Radosław Kujawa
436810b79f The overflow flag should be represented by "V". 2017-02-01 22:11:24 +01:00
Radosław Kujawa
92418b0f1f Add SBC emulation.
Of dubious quality.
2017-02-01 14:35:50 +01:00
Radosław Kujawa
371856f6c7 Make emul_bbr/bbs/smb/rmb functions static.
Since they are only called by wrappers within the same file.
2017-01-31 23:30:49 +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
2f076f4a16 Stop cleanly even if test is not working properly. 2017-01-31 23:07:17 +01:00
Radosław Kujawa
14830b7950 Add test case checking operation of overflow flag. 2017-01-31 23:06:05 +01:00
Radosław Kujawa
afadfd8b13 Fix pointer usage. 2017-01-31 14:11:21 +01:00
Radosław Kujawa
44f723b016 Attempt to emulate the BRK instruction. 2017-01-31 00:31:28 +01:00