Commit Graph

315 Commits

Author SHA1 Message Date
Radosław Kujawa 901e9626d5 Add initial Doxyfile. 2018-04-10 12:18:19 +02:00
Radosław Kujawa faec05b87e Start doxifying the documentation. 2018-04-10 12:17:59 +02:00
Radosław Kujawa 95368a186a Remove leftover attempt at CLI. 2018-04-10 10:23:32 +02:00
Radosław Kujawa ed4b2786b6 Simplify ROM loading by providing utility function. 2018-04-10 10:12:27 +02:00
Radosław Kujawa 96f955e8c1 Update year. 2018-04-09 17:07:21 +02:00
Radosław Kujawa fe94c747e5 Add test case for signed comparison. 2018-04-09 15:00:02 +02:00
Radosław Kujawa eeb564d69f Make log less verbose. 2018-04-06 14:27:05 +02:00
Radosław Kujawa adef30da21 Load the example at 0xC000, stop the emulator after running. 2018-04-06 14:26:00 +02:00
Radosław Kujawa 5173d10a69 Add code to actually run the example. 2018-04-06 14:25:26 +02:00
Radosław Kujawa b44dcdc91a Add example routine finding min among 3 numbers. 2018-04-05 00:32:53 +02:00
Radosław Kujawa 7cf3f263e3 Simplify handling ciritcal emulation errors. 2018-04-01 21:40:49 +02:00
Radosław Kujawa 68fa918d97 Document the way invalid opcodes are handled. 2018-04-01 21:16:58 +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 b35323cb3d Use logging function instead of printf. 2018-03-28 13:52:07 +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 260ac09c01 Emulate zero page wrap for zp,x addressing. 2018-03-28 13:46:06 +02:00
Radosław Kujawa 0b2be69481 Add test case for ASL. 2018-03-28 13:18:44 +02:00
Radosław Kujawa 9ff0cb26fc Explicitely cast time to long long ints.
Avoid portability bullshit problems.
2018-03-27 13:30:33 +02:00
Radosław Kujawa 25e62f4be4 Avoid compiler warning (variable uninitialized). 2018-03-27 13:18:29 +02:00
Radosław Kujawa e72871a5b6 Use clock_gettime instead of gettimeofday. 2018-03-27 12:53:08 +02:00
Radosław Kujawa 262321b363 Bring README up to date. 2018-03-26 16:45:07 +02:00
Radosław Kujawa 0f0c0196e4 Add logo. 2018-03-26 16:28:38 +02:00
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