Commit Graph

17 Commits

Author SHA1 Message Date
Sasha Koshka a52e5d3426 Ran gofmt 2022-09-08 14:43:19 -04:00
Sasha Koshka b0068336cd Programs are now loaded with a function and not a member var 2022-09-08 14:41:50 -04:00
Sasha Koshka d7d5be6949 Reversed order of comparison and arithmetic operations 2022-08-29 20:15:46 -04:00
Sasha Koshka 635aced0d4 Machine is now a generic type 2022-08-29 10:48:45 -04:00
Sasha Koshka e45d153b80 Test and poke operation fixed 2022-08-29 00:43:13 -04:00
Sasha Koshka dba858307d Added documentation of all the opcodes in README 2022-08-28 23:24:43 -04:00
Sasha Koshka 975de37927 Added and passed jump instruction test 2022-08-28 22:45:46 -04:00
Sasha Koshka c77925a7e0 Added a halt instruction test 2022-08-28 21:33:26 -04:00
Sasha Koshka a78c1dfcf1 Created and passed peek/poke test 2022-08-28 21:11:06 -04:00
Sasha Koshka 302a4e5806 Renamed load and store to peek and poke 2022-08-28 20:20:04 -04:00
Sasha Koshka 0f1285bbb9 Added and passed comparison test 2022-08-28 20:13:55 -04:00
Sasha Koshka 884f00d048 The division test was wrong 2022-08-28 19:59:00 -04:00
Sasha Koshka 287d23fe36 Added all opcodes as constants 2022-08-28 18:34:23 -04:00
Sasha Koshka 045bd2ef6d Generalized tests 2022-08-28 18:29:10 -04:00
Sasha Koshka 21aaaede8e Fixed issue with pushing to stack 2022-08-28 18:26:44 -04:00
Sasha Koshka b4bd86ad1d Added a division by zero error 2022-08-28 18:20:09 -04:00
Sasha Koshka dabd2df07c Added simple test case for arithmetic 2022-08-28 18:16:43 -04:00