Commit Graph

40 Commits

Author SHA1 Message Date
Daniel Beer ed2c841da9 Separated device vtables/class information. 2011-03-15 14:56:07 +13:00
Daniel Beer b6e241a9e3 Implemented uniform device constructor functions. 2011-03-15 14:20:06 +13:00
Daniel Beer f9488ec417 simio: implemented Watchdog Timer+ simulation. 2011-03-11 13:18:03 +13:00
Daniel Beer 8a1c8e8209 sim: debug memory requests will access IO memory. 2011-03-10 16:48:16 +13:00
Daniel Beer 82638f89af sim: don't mask the NMI interrupt with the GIE bit. 2011-03-10 16:44:43 +13:00
Daniel Beer 7a066dd5a5 simio: implemented interrupt handling. 2011-03-10 14:40:31 +13:00
Daniel Beer 981e691913 simio: implemented instruction cycle counting. 2011-03-10 12:53:20 +13:00
Daniel Beer 37e7216a19 simio: integrated programmed IO interface with CPU simulator. 2011-03-10 12:06:05 +13:00
Richard Nauber 1655524a2c sim: fix execution of SUB/SUBC/CMP opcodes. 2010-12-25 22:36:30 +13:00
Daniel Beer 0dade4228e Modified erase command to allow mass and segment erase. 2010-09-23 16:11:32 +12:00
Daniel Beer b9e5db63d5 device: altered erase interface to allow different erase types. 2010-09-23 15:45:06 +12:00
Daniel Beer 93087e534d prog: removed word-alignment buffering. 2010-09-13 10:40:29 +12:00
Daniel Beer 40fa5de592 Move code_start field into base device class. 2010-09-10 11:40:59 +12:00
Daniel Beer 9c2ed8c5fc Introduced quiet mode option and command-line switch.
Based on a patch by Eric Decker <cire831@gmail.com>
2010-08-31 15:50:00 +12:00
Daniel Beer 87f89adc44 All output now goes through buffering/filtering.
The following substitutions have been made:

    printf -> printc
    fprintf(stderr, ...) -> printc_err(...)
    perror -> pr_error
2010-08-17 11:07:03 +12:00
Daniel Beer 5b2c75563d Device interface and drivers are now 32-bit clean. 2010-08-05 14:43:07 +12:00
Daniel Beer 3f6d8f91ad Moved breakpoint table into device base structure.
Breakpoints only ever change by debugger control, so there's no point
having a device-dependent "getbrk" method. Breakpoint update need only
be done before starting the device running.
2010-07-27 13:08:21 +12:00
Daniel Beer 74a11c1ae0 Implemented support for multiple breakpoints. 2010-07-02 14:22:52 +12:00
Daniel Beer 39b71c5292 Fixed compilation warnings. 2010-05-22 16:09:28 +12:00
Daniel Beer b897d780c1 Fixed simulation bug: JGE/JL reversed. 2010-05-21 13:17:44 +12:00
Daniel Beer b8a3ef41c7 Use stdint.h instead of sys/types.h. 2010-05-13 12:57:21 +12:00
Daniel Beer 204aa31291 Device drivers are now objects. 2010-04-30 16:01:03 +12:00
Daniel Beer ba6e3366ff Command processor is now an object. 2010-04-21 16:56:56 +12:00
Daniel Beer 90d39a96f5 Move some unrelated functions out of parse.c 2010-04-21 14:12:12 +12:00
Daniel Beer 8758d8bc28 Separated parsing from util. 2010-04-10 15:02:14 +12:00
Daniel Beer 01e26ce3a8 Merged parse.[ch] into util.[ch]. 2010-03-30 15:54:03 +13:00
Daniel Beer 9d83386048 Implemented colorize disassembly. 2010-03-30 15:47:12 +13:00
Daniel Beer 0c3389f084 Fixed bugs introduced by sym table changes. 2010-03-28 16:12:34 +13:00
Daniel Beer 0871041787 Implemented B+Tree symbol table. 2010-03-27 22:50:02 +13:00
Daniel Beer ae1006f3ea gdb: can now interrupt execution on both sides 2010-03-23 14:37:53 +13:00
Daniel Beer 484aecd7bc Allow IO requests to be aborted. 2010-03-23 10:40:57 +13:00
Daniel Beer 96621649f3 Fixed PC offset labelling in IO simulation. 2010-03-23 09:58:40 +13:00
Daniel Beer 39a4c5806b Implemented basic gdb support.
Tested only with simulation mode -- real devices need testing.
2010-03-22 19:12:51 +13:00
Daniel Beer 39338c5a73 Simulation bug fixes. 2010-03-20 18:21:29 +13:00
Daniel Beer 74107d5632 In simulation, show PC offsets at time before decoding. 2010-03-20 16:33:38 +13:00
Daniel Beer b233f22518 Fixed set register command for simulation. 2010-03-20 16:25:01 +13:00
Daniel Beer 4207badb6e Fixed spurious IO reads from MOV instructions. 2010-03-20 16:18:06 +13:00
Daniel Beer b4d3b44fef Implemented prompting for IO in simulation. 2010-03-20 16:07:41 +13:00
Daniel Beer 0d71fcef38 Implemented CPU core emulator. 2010-03-20 15:18:58 +13:00
Daniel Beer 5a84cbf7f5 Basic simulation implementation (memory IO only). 2010-01-09 16:20:47 +13:00