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 |
|
Radosław Kujawa
|
b21d884f8b
|
Clear the decimal flag on initialisation.
|
2017-01-31 00:31:04 +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
|
1c72bd23a8
|
More meaningful comments.
|
2017-01-30 21:24: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
|
bf01ceb4cf
|
Add test cases for branches.
|
2017-01-29 21:18:01 +01:00 |
|
Radosław Kujawa
|
3c5162b0b9
|
Add emulation of branch instructions.
|
2017-01-29 13:57:51 +01:00 |
|
Radosław Kujawa
|
79b5a01d10
|
Add forgotten prototype of program_counter_branch().
|
2017-01-29 13:57:20 +01:00 |
|
Radosław Kujawa
|
e0fa334e3e
|
Fix relative address pritning in disassembly.
|
2017-01-29 13:55:53 +01:00 |
|
Radosław Kujawa
|
f5a4f45127
|
Add function setting the PC for branches.
|
2017-01-29 13:29:17 +01:00 |
|
Radosław Kujawa
|
762f140efd
|
Better operand formatting in disassembly.
|
2017-01-29 13:08:32 +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
|
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
|
05cedfb1f5
|
Also print program counter when dumping regs.
|
2017-01-27 22:28:09 +01:00 |
|
Radosław Kujawa
|
9da9f61f5a
|
There's one more field in that generated header. Adjust.
|
2017-01-27 22:27:30 +01:00 |
|
Radosław Kujawa
|
2430cfd722
|
Branch and jump instrucitons need special PC treatment.
|
2017-01-27 20:43:08 +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
|
9122615df4
|
Split function determining full path to ROM.
Adjust bus tests to this change.
|
2017-01-27 12:32:12 +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
|
1f581d3fd3
|
Add function to dump registers state onto stdout.
|
2017-01-27 11:27:14 +01:00 |
|
Radosław Kujawa
|
646c7d1905
|
Some opcodes also write data to accumulator.
|
2017-01-27 11:03:50 +01:00 |
|
Radosław Kujawa
|
8d5482ad09
|
Remove x bit from the awk program, it is never started directly.
|
2017-01-27 10:14:32 +01:00 |
|
Radosław Kujawa
|
0c63342ad7
|
Add comments explaing what these functions do.
|
2017-01-27 10:13:32 +01:00 |
|
Radosław Kujawa
|
b7f1b8095b
|
Add emulation of INC and DEC.
|
2017-01-27 00:04:47 +01:00 |
|
Radosław Kujawa
|
699d791023
|
Fix wrong object name.
|
2017-01-26 23:28:04 +01:00 |
|
Radosław Kujawa
|
ea95e3d02c
|
Fix pointer mess.
|
2017-01-26 23:27:54 +01:00 |
|
Radosław Kujawa
|
8ede93fb0e
|
Merge branch 'master' of github.com:rkujawa/rk65c02
|
2017-01-26 23:22:56 +01:00 |
|
Radosław Kujawa
|
bfb042cd1a
|
Add test for stepping mode.
|
2017-01-26 23:22:40 +01:00 |
|
Radosław Kujawa
|
0e784db076
|
Don't forget to link with utils.
|
2017-01-26 21:37:54 +01:00 |
|
Radosław Kujawa
|
1da576c821
|
Merge branch 'master' of github.com:rkujawa/rk65c02
|
2017-01-26 17:27:22 +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
|
80b6848108
|
Preliminary support for stepping.
|
2017-01-26 13:11:00 +01:00 |
|
Radosław Kujawa
|
941e89173a
|
Add struct with info about reason for stopping emulation.
|
2017-01-26 12:52:40 +01:00 |
|