1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-01 05:41:27 +00:00
Commit Graph

62 Commits

Author SHA1 Message Date
Radoslaw Kujawa
6ccb94ac46 Update copyright year. 2021-01-25 01:09:01 +01:00
Radosław Kujawa
b3e49fdb24 Add preambles with license information. 2019-09-23 15:28:05 +02:00
Radosław Kujawa
ef69c47c25
No reason to inline BCD conversion.
There's no noticable performance gain.
2018-07-06 10:26:44 +02:00
Radosław Kujawa
d0728c8ade Emulate invalid instructions.
Treat them as NOPs of different length just as real 65C02.
2018-04-10 13:56:37 +02:00
Radosław Kujawa
0c77eeb505 Remove leftover debug code. 2018-03-23 11:23:16 +01:00
Radosław Kujawa
2608ab5846 Better comments. 2017-02-17 12:45:22 +01:00
Radosław Kujawa
cc61646ba9 Fix carry flag setting in comparison instructions. Resolve #2. 2017-02-15 21:58:42 +01:00
Radosław Kujawa
c23136800a Unbreak BBR and BBS - they access zero page, don't act like immediate. 2017-02-13 18:39:51 +01:00
Radosław Kujawa
7f1c27af75 Fix carry flag handling for SBC. 2017-02-12 23:27:36 +01:00
Radosław Kujawa
23105b4861 Hopefully fix decimal mode handling. Hopefully. 2017-02-12 22:56:07 +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
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
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
a255b093e9 Fix overflow flag for SBC. 2017-02-02 22:54:34 +01:00
Radosław Kujawa
8e732f3b94 Make SBC somewhat less broken. 2017-02-01 22:15:16 +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
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
Radosław Kujawa
bc137b9390 Add emulation of BBR0-7 and BBS0-7 instructions. 2017-01-30 21:25:45 +01:00
Radosław Kujawa
5554de9411 Add TSB and TRB emulation. 2017-01-29 22:54:06 +01:00
Radosław Kujawa
923a9db649 Add emulation of SMB0-SMB7 instructions. 2017-01-29 21:34:58 +01:00
Radosław Kujawa
3c5162b0b9 Add emulation of branch instructions. 2017-01-29 13:57:51 +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
735c3677ce Correct address calculation for absolute indirect and absolute indirect X modes. 2017-01-28 00:10:22 +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
9294891a23 Remove unused variable. 2017-01-27 20:43:02 +01:00
Radosław Kujawa
28a5d54510 Add ASL and LSR emulation. 2017-01-27 17:14:56 +01:00
Radosław Kujawa
f63c00b192 Add RMB emulation. 2017-01-27 13:18:02 +01:00
Radosław Kujawa
b7f1b8095b Add emulation of INC and DEC. 2017-01-27 00:04:47 +01:00
Radosław Kujawa
941e89173a Add struct with info about reason for stopping emulation. 2017-01-26 12:52:40 +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
0dd63f2bf0 Add ROL and ROR emulation. Too old to ror and to rol! 2017-01-23 15:25:32 +01:00
Radosław Kujawa
f9708ca049 Add STA, STY, STX emulation. 2017-01-23 15:02:21 +01:00
Radosław Kujawa
ee8a16a5ba Add ORA and EOR emulation. 2017-01-23 14:53:05 +01:00
Radosław Kujawa
6b7298cf8d Avoid intermediate variable in AND emulation. 2017-01-23 14:45:46 +01:00
Radosław Kujawa
552fad8a7e LDY emulation. 2017-01-23 14:43:54 +01:00
Radosław Kujawa
5c38e5f05a Add emulation of LDX, TXA, TYA, TXS, TAX, TAY, TSX. 2017-01-23 14:38:50 +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