]> Witch of Git - jade-rose/log
jade-rose
4 years agoAdd parser and encoder tests, fix a parser bug
Cassie Jones [Sat, 11 Jan 2020 11:57:34 +0000 (06:57 -0500)]
Add parser and encoder tests, fix a parser bug

We test the parser by parsing an instruction, and then encoding it back
to binary, printed nicely. The test cases are generated by looking at
the spec table.

The parser was incorrectly parsing LD2U as ST2U. Fixed.

4 years agoAdd an instruction parser
Cassie Jones [Sat, 11 Jan 2020 11:10:33 +0000 (06:10 -0500)]
Add an instruction parser

4 years agoAdd instruction encoder
Cassie Jones [Sat, 11 Jan 2020 08:52:38 +0000 (03:52 -0500)]
Add instruction encoder

4 years agoAdd Reg constructor
Cassie Jones [Sat, 11 Jan 2020 07:42:32 +0000 (02:42 -0500)]
Add Reg constructor

4 years agoAdd encode and decode traits
Cassie Jones [Sat, 11 Jan 2020 06:50:31 +0000 (01:50 -0500)]
Add encode and decode traits

4 years agoAdd instruction datatype
Cassie Jones [Sat, 11 Jan 2020 06:44:06 +0000 (01:44 -0500)]
Add instruction datatype

4 years agoAdd Jordan Rose's ISA spec
Cassie Jones [Sat, 11 Jan 2020 05:58:12 +0000 (00:58 -0500)]
Add Jordan Rose's ISA spec