Commit Graph

107 Commits

Author SHA1 Message Date
Anton Lydike
fdcb3a71be added readthedocs 2021-04-23 18:42:54 +02:00
Anton Lydike
819d57e3c8 preparations for sphinx documentation generation 2021-04-22 15:47:11 +02:00
Anton Lydike
6e6ce90e9a added lots more documentation and copyright notices 2021-04-22 14:29:10 +02:00
Anton Lydike
2a68f16e99 added lots of documentation in pydoc style 2021-04-22 13:57:13 +02:00
Anton Lydike
8c1714116e more info in readme to symbols and prgram startup 2021-04-22 13:03:49 +02:00
Anton Lydike
a1fe631844 improved debugging output on early exit and reformatted cpu file 2021-04-22 13:00:37 +02:00
Anton Lydike
21b974cfbd prettier debug output (colorized) 2021-04-22 12:57:40 +02:00
Anton Lydike
41f5dd0730 better ascii dumps 2021-04-22 12:48:46 +02:00
Anton Lydike
ebfb3a0112 better formatted print outputs 2021-04-22 12:41:07 +02:00
Anton Lydike
18b5ea0570 added launch message where cpu starts execution 2021-04-22 12:40:28 +02:00
Anton Lydike
44ae0bac77 read syscall now behaves like readline instead of read 2021-04-22 11:22:05 +02:00
Anton Lydike
0d9960c01a added add_accept_imm option flag to allow add rd, rs, imm instructions 2021-04-21 21:04:56 +02:00
5da0f8b0fa fixed failure to launch with missing --instruction-sets flag 2021-04-21 20:41:35 +02:00
Anton Lydike
9afbd03733 added .word pseudo op 2021-04-21 20:36:26 +02:00
Anton Lydike
daed3a0205 added proper cpu exit handling 2021-04-21 20:36:10 +02:00
30d3e0ab59 updated readme formatting 2021-04-19 12:53:00 +02:00
cd17c65ce7 Added instruction set selector to CLI 2021-04-19 12:51:43 +02:00
8b1cbd97ec added heap/stack support to todo section in readme 2021-04-19 12:33:44 +02:00
b24a83d27c rewrote parts of instruction set docs 2021-04-19 12:24:14 +02:00
22a577da59 fixed formatting in verbose cpu output 2021-04-19 12:18:06 +02:00
785af6b747 added more documentation about debuggin tools 2021-04-19 12:16:50 +02:00
39d5212d3d added stepping functionality to the debugger 2021-04-19 12:10:24 +02:00
521cb73ad6 better dumping code in debugger 2021-04-19 11:27:31 +02:00
318b62431d catching invalid immediate value now 2021-04-19 11:22:08 +02:00
7d095991a2 added light documentation for internal structure 2021-04-19 11:16:57 +02:00
97525bf8ab fixed cpu __repr__ method 2021-04-19 11:16:05 +02:00
Anton Lydike
9cd0fcb7e8 added url to risc-v instruction definition to README 2021-04-19 09:49:06 +02:00
Anton Lydike
b7c0f39aaa added documentation for RV32M 2021-04-19 09:48:31 +02:00
Anton Lydike
7aa67cd4e1 improved instruction parsing in RV32M 2021-04-19 09:48:06 +02:00
Anton Lydike
d8f46c781c finished the RV32I instruction set 2021-04-19 09:00:45 +02:00
Anton Lydike
1abeab6f2d added parse_rs_rs_imm method to InstructionSet, used for branch instructions 2021-04-19 08:53:35 +02:00
Anton Lydike
d40c80cb81 added unsigned options to instruction parsing 2021-04-19 08:37:16 +02:00
Anton Lydike
1957e11f62 added unified instruction parsing 2021-04-19 08:34:39 +02:00
Anton Lydike
2d378f2e0a implemented remu, rem, divu div and mul in RV32M 2021-04-19 00:05:23 +02:00
Anton Lydike
157589548d unified instruction parsing code 2021-04-19 00:04:51 +02:00
Anton Lydike
d3fe6cb1a9 fixed read syscall shadowing of len 2021-04-19 00:04:10 +02:00
Anton Lydike
38cb3f7669 renamed RVM to RV32M 2021-04-18 23:47:08 +02:00
Anton Lydike
7f3fb9b141 fixed bgeu, bltu and bge in RV32I 2021-04-18 23:45:11 +02:00
Anton Lydike
07f097202d added lui instruction to RV32I 2021-04-18 23:44:18 +02:00
Anton Lydike
4c50b8bf06 added .space pseudo op, currently does nothing 2021-04-18 23:43:56 +02:00
Anton Lydike
c6b18dd152 fixed hex check in parse number code 2021-04-18 23:43:39 +02:00
Anton Lydike
d8d53da774 added scaffolding form RVM instruction set 2021-04-18 23:29:12 +02:00
Anton Lydike
7dcbd59d34 removed old unused run.py 2021-04-18 23:16:32 +02:00
Anton Lydike
18a9e5e223 updated todo in README 2021-04-18 23:15:48 +02:00
Anton Lydike
3ce42079d4 refactored instruction sets to be modular 2021-04-18 23:14:53 +02:00
Anton Lydike
c20ab4cfb1 added more debugging info to README 2021-04-18 21:43:39 +02:00
Anton Lydike
e42ec6a331 merged assembly and cpu docs 2021-04-18 20:42:09 +02:00
Anton Lydike
a7cedc1cd2 fixed bad link in README 2021-04-18 20:37:14 +02:00
Anton Lydike
91a12fd2a8 fixed tokenizer hanging on unknown instruction 2021-04-18 20:36:13 +02:00
Anton Lydike
a3ab418858 fixed formatting in Registers.dump() 2021-04-18 20:32:25 +02:00