Commit Graph

142 Commits

Author SHA1 Message Date
zongor df9d19207c Reorganize, add tools for parser 2025-09-20 13:49:13 -07:00
zongor 922959191d cleanup / prepwork for assembler. 2025-09-20 12:49:01 -07:00
zongor 2d72240652 add branchless jmps 2025-09-20 10:05:52 -07:00
zongor cf0318e96f rename acc -> flag since it really doesnt accumulate anything, could be confusing to devs 2025-09-20 08:46:09 -07:00
zongor b8832a7116 Fix the syscalls, add strlen as an opcode 2025-09-20 08:44:02 -07:00
zongor dd7cc62a3e Refactor to varied length opcodes, update structure, fix Makefile, WIP: number toS 2025-09-17 23:16:38 -07:00
zongor 94a1375d51 Move some things, fix string to number 2025-09-09 22:50:03 -07:00
zongor 7634bbe1c9 cleanup, add more stringops 2025-09-09 21:53:52 -07:00
zongor 75ad08dae1 Forgot to remove this one 2025-09-09 21:16:33 -07:00
zongor 770d9d56ff Cleanup, get rid of all the prototyping stuff 2025-09-09 21:15:39 -07:00
zongor fde5c82d0d WORKING DEVICES!! 2025-09-02 22:57:48 -07:00
zongor 252c9614c0 small fixes, make default a noop 2025-08-31 12:59:29 -07:00
zongor ab5bc87908 add initial device implementation 2025-08-31 12:56:59 -07:00
zongor 744f2d526b Add OP_GET_PC to implement coroutines/yield in stdlib later. 2025-08-31 10:14:32 -07:00
zongor aa16b6b348 update opcodes to handle memory better 2025-08-30 10:17:38 -07:00
zongor 6be5a4d3f9 fix tests 2025-08-30 07:56:08 -07:00
zongor 43ebed6553 update to opcodes, go with tunnels and syscals, partial refactor of memory, try out fixed size again 2025-08-29 22:02:19 -07:00
zongor 0dedf5a2ad add better testing, flags, fix fib.zrl 2025-08-24 08:45:31 -07:00
zongor f1edd4267f fix loop compile 2025-08-24 00:06:24 -07:00
zongor 8aeeebc351 WIP change to store primitives in memory intead of code 2025-08-23 21:29:46 -07:00
zongor b21de2d1fc fixes, cleanup, type -> plex 2025-08-17 19:32:19 -07:00
zongor 63d67b5c0d move sdl to own thing, add array + plex handling 2025-08-16 21:51:23 -04:00
zongor f6484ff378 Fix makefile, remove hello world test because now can compile it. 2025-08-03 18:09:20 -04:00
zongor 14bf533635 nuqneH 'u'? 2025-08-03 17:46:39 -04:00
zongor 881c6c7740 remove doc 2025-08-03 16:03:50 -04:00
zongor c348ea3fdd add initial compiler 2025-08-03 16:03:25 -04:00
zongor 039de2a761 revert, maybe do this later its complicated enough as it is 2025-08-02 22:23:39 -04:00
zongor 933c76dc06 wip move to byte model 2025-07-29 23:51:41 -04:00
zongor 4fccd4d48d remove temporary malloc 2025-07-28 23:13:39 -04:00
zongor 7e6a063bdb fix lexer 2025-07-27 21:07:39 -04:00
zongor 88dfbb098d start working on lexer 2025-07-27 13:11:44 -04:00
zongor 9326d12585 add lisp examples 2025-07-20 23:40:15 -04:00
zongor 02702315cb new str embedding fn 2025-07-20 21:16:32 -04:00
zongor c43761a8da add zlc benchmarks 2025-07-20 19:12:41 -04:00
zongor 5184b60136 split up code and memory 2025-07-20 11:17:28 -04:00
zongor 035397209d add more devices 2025-07-20 10:00:38 -04:00
zongor a9f3ec694c add string example 2025-07-19 20:20:28 -04:00
zongor 6b23fd2119 add sdl2 demo 2025-07-13 12:44:39 -04:00
zongor 27d9c3a686 break up into arch 2025-07-13 10:56:02 -04:00
zongor 66adb19578 cleanup 2025-07-13 09:35:11 -04:00
zongor 3e46c04513 add more examples 2025-07-13 00:12:27 -04:00
zongor 67a74f3417 more benchmarks 2025-07-12 23:51:45 -04:00
zongor 7598a93b31 add recursion, add benchmarks 2025-07-12 23:14:23 -04:00
zongor 19a69d3be5 fix jumps to be less weird 2025-07-10 21:46:29 -04:00
zongor 49f7189470 forgot to add this back 2025-07-08 22:02:46 -04:00
zongor fefc9e803a throwing away a bunch of stuff, lets do the whole compiler inside the VM 2025-07-08 21:59:56 -04:00
zongor 7ec2f90d38 add function example 2025-07-05 23:29:07 -04:00
zongor c63d149bdb removed accidental copy 2025-07-05 19:11:36 -04:00
zongor 2f0d841d8d update test examples 2025-07-05 19:10:32 -04:00
zongor 270eef83a2 rename to make more clear 2025-07-05 16:59:51 -04:00
zongor 7bff3208a0 fix str 2025-07-05 16:38:42 -04:00
zongor f28dd417d9 pretty sure strings are still broken, but it runs at least 2025-07-05 15:54:33 -04:00
zongor bcc61a93eb WIP (untested) automatic string allocation, function call/return 2025-07-05 14:59:09 -04:00
zongor 0263d1511d WIP function calls 2025-07-05 12:40:33 -04:00
zongor aab4c887ca add call frames, refactor to allow call frames to work, add debug 2025-06-27 13:06:06 -04:00
zongor f909071287 Cleanup some stuff 2025-06-22 15:03:25 -04:00
zongor a741a0c992 update docs, fix float jmp 2025-06-22 10:57:15 -04:00
zongor 457c77b6ab update documentation 2025-06-21 23:32:41 -04:00
zongor d27d4259aa convert to register based instead of mem2mem 2025-06-21 23:20:29 -04:00
zongor 16117b9a3a add hashmap as macro, Q16.16 -> float (implement later), general cleanup 2025-06-19 19:02:03 -04:00
zongor fd9516bf7e change back to MIT since using some stuff from craftingintepreters 2025-06-15 15:54:49 -04:00
zongor 0d958be440 add parser, compiler, breakout opcodes, fix test 2025-06-14 22:57:19 -04:00
zongor 697b6de2ff add parser, fix comments 2025-06-14 19:05:19 -04:00
zongor 447886b037 add license header 2025-06-14 18:50:39 -04:00
zongor 29a6a3d471 refactor to reduce repeats 2025-06-14 14:54:38 -04:00
zongor bf2609c6ee add uint toS 2025-06-14 14:48:11 -04:00
zongor d9ab352c68 small fixes 2025-06-14 14:42:25 -04:00
zongor e8d0cd5e96 add Q16.16 real, uint32, and int32 opcodes 2025-06-14 14:38:04 -04:00
zongor 0cd92bb919 add emscripten wasm 2025-06-14 11:44:36 -04:00
zongor 381b6ebb9a add magic to binary 2025-06-14 11:34:35 -04:00
zongor 838f3800cb refactor to step intead of loop 2025-06-14 11:30:27 -04:00
zongor 4cb02c41d0 add float and int == 2025-06-14 00:14:00 -04:00
zongor d4d887e6a1 add float and int >,<,>=,<= 2025-06-14 00:10:24 -04:00
zongor dc89a24701 move dump to debug 2025-06-13 21:50:43 -04:00
zongor 5107ac5df8 add direct char casting 2025-06-13 19:13:47 -04:00
zongor 6b7beadaeb fix string handling 2025-06-13 16:22:37 -04:00
zongor bb9e30a1c1 begin breaking up into modules, add wasm 2025-06-11 22:41:49 -04:00
zongor 244baf55f1 fix endianess 2025-06-08 23:45:54 -04:00
zongor 39b6a1f15f add int2float and float2int conversion ops 2025-06-08 23:26:42 -04:00
zongor af01b5afae quick-n-dirty num to str 2025-06-08 18:07:19 -04:00
zongor a1c74760a1 add fat pointers for strings, update makefile, test 2025-06-08 16:41:53 -04:00
zongor 2817e940e1 delete test, add combined type 2025-06-08 15:24:43 -04:00
zongor 52c33178d3 start from scratch with own code 2025-05-11 18:54:31 -04:00
zongor ae665d89ed migrate old compiler, hack on that instead 2025-05-04 14:51:38 -04:00
zongor 9d65790e5d add logical ops, add numbers 2025-05-04 14:08:21 -04:00
zongor bf38431165 add scanner, compiler 2025-05-04 12:55:28 -04:00
zongor fb6cc45f83 add math ops 2025-05-03 23:39:57 -04:00
zongor 5a1a399d4f add vm 2025-05-03 23:18:20 -04:00
zongor 72c5830637 add line numbers 2025-05-03 21:28:34 -04:00
zongor a2e5d43e1e add constants 2025-05-03 21:24:45 -04:00
zongor 58f7e30357 add initial compiler, add tests 2025-05-03 21:07:19 -04:00
zongor 281211d150 delete old files 2025-05-03 20:34:55 -04:00