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

291 Commits

Author SHA1 Message Date
Radosław Kujawa
9c16656198 Disable tracing by default. 2018-03-26 16:11:26 +02:00
Radosław Kujawa
afbd412879 Remove usused variable. 2018-03-26 14:31:07 +02:00
Radosław Kujawa
f4aa7c4508 Don't build the useless CLI for now... 2018-03-26 12:38:25 +02:00
Radosław Kujawa
ae3e782b74 Use boehm gc to manage memory.
I'm less likely to fuck this up now.
2018-03-26 12:36:47 +02:00
Radosław Kujawa
a98c8f1018 Print debug message before loading ROM. 2018-03-26 09:59:55 +02:00
Radosław Kujawa
85a53f89c8 Start implementation of display emulation.
Something like a character RAM for a start. When 65C02 writes into
this space, a callback will be executed that would allow redrawing
the emulated screen. Multiple backends can be supported this way.
2018-03-25 18:01:15 +02:00
Radosław Kujawa
13a4c73807 Unbreak BRK test case - add RAM for ISR vector. 2018-03-24 23:06:29 +01:00
Radosław Kujawa
63168d6f84 Increase log level for stepping test case. 2018-03-24 23:06:13 +01:00
Radosław Kujawa
fc1503c3f0 Add readable name for log level "none". 2018-03-24 23:05:42 +01:00
Radosław Kujawa
363bb56fc6 Make RAM size configurable. 2018-03-24 23:05:28 +01:00
Radosław Kujawa
eeb337a0d6 Don't forget newline when printing regs. 2018-03-24 00:14:41 +01:00
Radosław Kujawa
5fddf2c5dc More refactoring and improvements to logging! 2018-03-23 13:37:07 +01:00
Radosław Kujawa
0c77eeb505 Remove leftover debug code. 2018-03-23 11:23:16 +01:00
Radosław Kujawa
5cb6f3488e Further improvements and refactoring to logging. 2018-03-22 15:08:51 +01:00
Radosław Kujawa
47aca32da7 Add minimal logging functionality. 2018-03-21 16:22:29 +01:00
Radosław Kujawa
065d001135 Add missing header file. 2018-03-20 12:06:40 +01:00
Radosław Kujawa
d51277235b Use correct type for read(2)'ing. 2018-03-20 12:01:08 +01:00
Radosław Kujawa
a1785ae68d Bus access debugging can be enabled run-time via boolean. 2017-02-28 10:49:57 +01:00
Radosław Kujawa
0735487ed0 Add skeleton for a serial device test.
Not really working yet, so commented out in Kyuafile.
2017-02-26 13:07:39 +01:00
Radosław Kujawa
10b9778383 Make this compile. 2017-02-25 12:56:17 +01:00
Radosław Kujawa
edab91de3f Refactor bus reads and writes to split common code. 2017-02-25 12:54:15 +01:00
Radosław Kujawa
1f072e1b11 Somewhat better serial device. Still one way only. 2017-02-25 02:04:12 +01:00
Radosław Kujawa
97c7709dc7 Fix device offset computation in bus writes. 2017-02-23 23:04:45 +01:00
Radosław Kujawa
6f875e13e7 Make serial device sort of work. One way. 2017-02-22 22:46:10 +01:00
Radosław Kujawa
dcf275939b Make bus read/writes possible to devices mapped anywhere, not only 0. 2017-02-22 22:43:58 +01:00
Radosław Kujawa
7ab946c5df First attempt at adding serial port emulated via named pipe on host. 2017-02-22 21:58:41 +01:00
Radosław Kujawa
53f0136cab Add cleanup function for RAM device. Also cosmetics. 2017-02-21 11:11:21 +01:00
Radosław Kujawa
ec235796c0 Merge branch 'master' of github.com:rkujawa/rk65c02 2017-02-20 21:32:22 +01: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
43e38e567d Further adjustments to get device subsystem working. 2017-02-20 21:29:52 +01:00
Radosław Kujawa
5cec9a9784 More work on devices subsystem. 2017-02-20 12:31:26 +01:00
Radosław Kujawa
7baefe9277 Attempt to design a semi-flexible device subsystem. 2017-02-19 21:45:15 +01:00
Radosław Kujawa
2608ab5846 Better comments. 2017-02-17 12:45:22 +01:00
Radosław Kujawa
0df6387a41 Simple test case for tracing. 2017-02-15 22:12:56 +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
cc61646ba9 Fix carry flag setting in comparison instructions. Resolve #2. 2017-02-15 21:58:42 +01:00
Radosław Kujawa
de1ab25427 Make runtime disassembly optional. 2017-02-15 21:38:51 +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
0b83a263d7 Introduce trace functionality. 2017-02-15 21:32:12 +01:00
Radosław Kujawa
b32be45d10 That's called "test_debug" not "test_breakpoint". 2017-02-15 19:58:44 +01:00
Radosław Kujawa
22f9e65714 Add test program for debug related funcs into test suite.
While here, sort.
2017-02-15 19:57:45 +01:00
Radosław Kujawa
0653d7428d Add test case for breakpoint functions. 2017-02-15 19:57:16 +01:00
Radosław Kujawa
6afb4531d5 The rk65c02_exec should return immediately after hitting breakpoint. 2017-02-15 19:56:22 +01:00
Radosław Kujawa
3286891ea8 Add missing prototype of debug_breakpoint_remove to include file. 2017-02-15 19:55:48 +01:00
Radosław Kujawa
ea5c09d7c0 Report failure when malloc errors. 2017-02-15 19:55:15 +01:00
Radosław Kujawa
3363959b87 Add breakpoints. 2017-02-14 11:17:40 +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
7db9b2f7c6 RMB1 instruction is 2 byte long (opcode + one operand). 2017-02-13 21:54:10 +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
8de5574aab Handle accessing bus in zero page relative mode just as in zero page.
It should make things less awkward and still work fine, as the only
instructions using this mode are BBS and BBR. These only use first
operand as the address in zero page to read data from.
2017-02-13 18:37:14 +01:00