-
c7d948cdcd
Added some helpful comments to the creature command
main
Sasha Koshka
2022-09-08 18:46:59 -04:00
-
dcd8c56c0d
Added basic implementation that executes text files
Sasha Koshka
2022-09-08 16:02:36 -04:00
-
a52e5d3426
Ran gofmt
Sasha Koshka
2022-09-08 14:43:19 -04:00
-
b0068336cd
Programs are now loaded with a function and not a member var
Sasha Koshka
2022-09-08 14:41:50 -04:00
-
3be08736b4
Downgraded to go 1.18 so it works on my laptop
Sasha Koshka
2022-09-08 14:36:28 -04:00
-
cfae69c0c2
Updated readme accordingly
Sasha Koshka
2022-08-29 20:20:46 -04:00
-
d7d5be6949
Reversed order of comparison and arithmetic operations
Sasha Koshka
2022-08-29 20:15:46 -04:00
-
e342d9b254
Fixed poking segfault
v1.0.1
Sasha Koshka
2022-08-29 12:01:08 -04:00
-
635aced0d4
Machine is now a generic type
v1.0.0
Sasha Koshka
2022-08-29 10:48:45 -04:00
-
810ecdb3ac
Added two examples showing the machine in action
Sasha Koshka
2022-08-29 01:10:04 -04:00
-
b0b055d6ce
Improved wording of readme
Sasha Koshka
2022-08-29 00:56:27 -04:00
-
e45d153b80
Test and poke operation fixed
Sasha Koshka
2022-08-29 00:43:13 -04:00
-
dba858307d
Added documentation of all the opcodes in README
Sasha Koshka
2022-08-28 23:24:43 -04:00
-
975de37927
Added and passed jump instruction test
Sasha Koshka
2022-08-28 22:45:46 -04:00
-
c77925a7e0
Added a halt instruction test
Sasha Koshka
2022-08-28 21:33:26 -04:00
-
a78c1dfcf1
Created and passed peek/poke test
Sasha Koshka
2022-08-28 21:11:06 -04:00
-
302a4e5806
Renamed load and store to peek and poke
Sasha Koshka
2022-08-28 20:20:04 -04:00
-
0f1285bbb9
Added and passed comparison test
Sasha Koshka
2022-08-28 20:13:55 -04:00
-
884f00d048
The division test was wrong
Sasha Koshka
2022-08-28 19:59:00 -04:00
-
287d23fe36
Added all opcodes as constants
Sasha Koshka
2022-08-28 18:34:23 -04:00
-
045bd2ef6d
Generalized tests
Sasha Koshka
2022-08-28 18:29:10 -04:00
-
21aaaede8e
Fixed issue with pushing to stack
Sasha Koshka
2022-08-28 18:26:44 -04:00
-
850de8a2bf
Fix out of bounds errors in Machine.Pop
Sasha Koshka
2022-08-28 18:22:11 -04:00
-
b4bd86ad1d
Added a division by zero error
Sasha Koshka
2022-08-28 18:20:09 -04:00
-
dabd2df07c
Added simple test case for arithmetic
Sasha Koshka
2022-08-28 18:16:43 -04:00
-
a2b64fcc19
Machine.Execute returns an error on unknown instruction
Sasha Koshka
2022-08-28 17:56:41 -04:00
-
7b93b550e5
Actually halt machine when a function returns true
Sasha Koshka
2022-08-28 17:53:36 -04:00
-
07a783b6ba
Ran gofmt
Sasha Koshka
2022-08-28 17:52:39 -04:00
-
eb3f581b00
Added a function to load in a block of memory
Sasha Koshka
2022-08-28 17:50:53 -04:00
-
3b8f87212f
Added method to unregister function
Sasha Koshka
2022-08-28 17:36:45 -04:00
-
d48181b832
Add a Reset method to the machine
Sasha Koshka
2022-08-28 17:35:30 -04:00
-
ebf58c9427
Implemented call instruction and function registering
Sasha Koshka
2022-08-28 17:31:06 -04:00
-
4067027588
Implemented mod, halt, and jump instructions
Sasha Koshka
2022-08-28 17:11:43 -04:00
-
589657e31b
Implemented comparison instructions
Sasha Koshka
2022-08-28 17:03:15 -04:00
-
a1ea9f30da
Changed order of divide and subtract
Sasha Koshka
2022-08-28 16:59:11 -04:00
-
efc263fe72
Implemented memory and arithmetic instructions
Sasha Koshka
2022-08-28 16:56:28 -04:00
-
a098a30da0
Added peek and poke methods to read/write to block
Sasha Koshka
2022-08-28 14:19:46 -04:00
-
601636a0ad
Implement instructions 0x0 and 0x1
Sasha Koshka
2022-08-28 13:30:54 -04:00
-
f27ac7b560
Initial commit
Sasha Koshka
2022-08-28 13:25:00 -04:00