Commit Graph

41 Commits

Author SHA1 Message Date
Peter McGoron 3dd29b1004 add label parser that can deal with forward jumps; all tests pass 2023-02-20 18:45:21 +00:00
Peter McGoron 48827c5b74 adjust python assembler to new API 2023-02-18 16:05:09 +00:00
Peter McGoron 83c568c8dd add data, remove labels and make jumps absolute 2023-02-18 05:55:04 +00:00
Peter McGoron d14c655f6a add version defines 2023-02-12 20:54:47 +00:00
Peter McGoron f6d9276d24 add license 2023-02-12 20:54:21 +00:00
Peter McGoron 472667e87b README.md: update 2023-02-12 20:45:51 +00:00
Peter McGoron e537d927a1 test all 2023-02-12 20:39:03 +00:00
Peter McGoron 304e5d63c5 syscall test 2023-02-12 20:37:45 +00:00
Peter McGoron 4f14e48ba5 more loop tests 2023-02-12 20:21:25 +00:00
Peter McGoron 827abe4305 add immediate signed and unsigned tests 2023-02-12 19:52:41 +00:00
Peter McGoron 00e9d12c71 add mov and unconditional jump 2023-02-12 19:28:48 +00:00
Peter McGoron 009af92f65 documentation 2023-02-12 19:13:37 +00:00
Peter McGoron 7b3eaf9b4f add pseudoinstructions that compile to regular instructions 2023-02-12 18:06:08 +00:00
Peter McGoron b425e26ea3 jump tests 2023-02-11 21:24:48 +00:00
Peter McGoron 70720b8a16 rename idiv to sdiv 2023-02-11 20:51:03 +00:00
Peter McGoron 5f3275cf2d add signed division IDIV 2023-02-11 20:49:39 +00:00
Peter McGoron 18ad8f03c6 more test 2023-02-11 17:36:15 +00:00
Peter McGoron b80cb225a4 add stack overflow and underflow tests 2023-02-11 17:27:29 +00:00
Peter McGoron 07347d1f66 more add tests 2023-02-11 17:11:32 +00:00
Peter McGoron 15fb92e502 comments and negative immediates 2023-02-11 17:04:17 +00:00
Peter McGoron 582a0a2c9a enable compiling and add compile test 2023-02-11 14:28:43 +00:00
Peter McGoron 98bf49d931 test pop 2023-02-09 20:42:36 +00:00
Peter McGoron ef84135a2e change instructions to be an enum 2023-02-09 16:32:32 +00:00
Peter McGoron c0770d8ece add compile t est 2023-02-09 16:16:41 +00:00
Peter McGoron e044a7b457 test refactoring 2023-02-08 13:56:39 +00:00
Peter McGoron 606814c4c0 python ffi: test parsing 2023-02-08 04:15:54 +00:00
Peter McGoron 705346372d move tests 2023-02-07 17:48:28 +00:00
Peter McGoron f6e8c62f9e move python 2023-02-07 17:46:44 +00:00
Peter McGoron a96bac26a8 add label test 2023-02-07 17:44:44 +00:00
Peter McGoron 972a8ac8f1 more asm test 2023-02-07 17:30:29 +00:00
Peter McGoron 96e8eb95b0 assembler: refactor and start tests 2023-02-07 17:25:52 +00:00
Peter McGoron 5084bb7771 asm.py: rename 2023-02-07 16:48:37 +00:00
Peter McGoron 7cc44cf730 asm.py: write 2023-02-07 16:48:22 +00:00
Peter McGoron a7308280cb start assembler 2023-02-07 16:38:04 +00:00
Peter McGoron aa1ed8a06e fix parse_special_byte function 2023-02-07 06:35:18 +00:00
Peter McGoron 7239582251 test encode and decode 2023-02-07 06:19:40 +00:00
Peter McGoron c5cff40bbf test_encode_decode: add messages 2023-02-07 05:29:08 +00:00
Peter McGoron df4b2e3b3f openmp parallelized encoding testing 2023-02-07 05:25:30 +00:00
Peter McGoron e0599bad23 fixing precedence issue in test 2023-02-07 04:50:50 +00:00
Peter McGoron b053379db2 encode 2023-02-07 04:38:39 +00:00
Peter McGoron f63d6cdd3d prototype bytecode interpreter 2023-02-05 11:44:37 +00:00