Commit Graph

252 Commits

Author SHA1 Message Date
zongor 0d30ea292a Fix assembler, update tests, update roms, add back nogui mode for speed. 2025-12-07 15:29:49 -08:00
zongor 07528b1f3f fix silly missing `get_reg` error. all non gui ones are working now 2025-12-03 21:45:03 -08:00
zongor 9218051b87 Add better debugging for assembler. Simplify symbol table creation (somewhat). 2025-12-01 23:20:36 -08:00
zongor f901dafa2b WIP Code generation, 'simple' works 2025-11-30 23:22:25 -08:00
zongor 2e5eb03227 remove old assembler, finish symbol table pass, start working on code gen 2025-11-29 19:44:54 -08:00
zongor 733dfc0364 wip, add all the sizing for symbols 2025-11-29 13:52:12 -08:00
zongor 89a17f06f0 start making changes to init_vm 2025-11-29 10:50:29 -08:00
zongor b638fedd81 Update readme 2025-11-29 09:26:35 -08:00
zongor 55b6145064 Add semicolon 2025-11-29 09:21:12 -08:00
zongor 32ae0eeb8f fix readme 2025-11-29 08:28:17 -08:00
zongor 9d2053aef0 wip symbol table, remove malloc_imm, fix docs 2025-11-29 08:26:12 -08:00
zongor 4f73339efb wip symbols + offsets 2025-11-29 00:50:25 -08:00
zongor 7b8059e6c7 refactor strings, add loop to lexer 2025-11-24 21:40:57 -08:00
zongor 6f47ee7ea1 wip new assembler; start of compiler 2025-11-23 23:48:26 -08:00
zongor 96deaa9ff7 more syntax refinement 2025-11-22 13:52:31 -08:00
zongor 32365a8895 wip assembler v2 2025-11-10 23:45:09 -08:00
zongor 0113411f89 rename some things, create new parser defs. 2025-11-09 22:23:55 -08:00
zongor c90f236ab3 Refactor and rename to align with new IR better 2025-11-09 13:22:46 -08:00
zongor 99e2f2c0c3 some experimental syntax 2025-11-08 23:44:42 -08:00
zongor a1197e8b43 fix small bug 2025-11-08 22:29:32 -08:00
zongor 1311659bed Add new IR language, update docs 2025-11-08 22:19:18 -08:00
zongor 5d2aa1ad22 wip compiler stuff 2025-11-04 17:09:55 -08:00
zongor edb00d0a4c fix spelling 2025-10-26 14:52:48 -07:00
zongor 739c3638a6 Code cleanup, add halt return type, add neg and abs ops, fix strings, 2025-10-26 14:49:00 -07:00
zongor feaebcec1d update all the high level test files 2025-10-25 21:58:37 -07:00
zongor 32c0c5611f Update tests and roms to new device handling 2025-10-25 21:48:12 -07:00
zongor c80481de76 Update devices to use file descriptor rather than handel. Create REFRESH syscall 2025-10-25 21:39:13 -07:00
zongor 47d5bdd1d9 Setup demos for new compiler. 2025-10-25 13:59:05 -07:00
zongor de9ab028b5 Dark mode for web, documentation updates 2025-10-25 12:57:14 -07:00
zongor 421cceba23 update examples in readme 2025-10-25 12:15:18 -07:00
zongor 5d8688446e update paint programs 2025-10-25 12:13:37 -07:00
zongor 54fc748d8d Some optimizations, also WIP paint program refactor 2025-10-25 11:03:23 -07:00
zongor 3be8761930 WIP passing args and returning values from a function call. Updates to documentation, update logo 2025-10-24 23:04:05 -07:00
zongor 790d7e8509 Add intial lexer back again, fix docs 2025-10-18 18:15:54 -07:00
zongor 6c1bf1ff8c Fix tests, make auto compile for rom files 2025-10-18 16:54:06 -07:00
zongor 89ef394888 normalize naming, add memory offset opcodes 2025-10-18 14:54:13 -07:00
zongor d69b83f4eb Update devices to use plexes instead of raw memory 2025-10-17 16:11:20 -07:00
zongor 3f3c6e1b80 [wip] rewrite device open to use plex 2025-10-16 09:25:34 -07:00
zongor 9d30ffb69b use minimal shell 2025-10-14 15:39:03 -07:00
zongor 0c72525755 Emscripten Paint Works!!!!!! 2025-10-14 15:27:29 -07:00
zongor dcf348f577 remove string lookup for devices use handles instead 2025-10-14 00:02:12 -07:00
zongor 4d82914f3c Revert "add get-arg instead of using stack (push/pop). refactor call/return to use arg based"
This reverts commit 97ad6b5505.
2025-10-12 11:15:36 -07:00
zongor 97ad6b5505 add get-arg instead of using stack (push/pop). refactor call/return to use arg based 2025-10-11 13:01:40 -07:00
zongor 89574d9813 Refactor load/save to register/memory. Add memset variants 2025-10-10 14:17:12 -07:00
zongor 4d71d72e7a remove 2025-10-06 19:42:47 -07:00
zongor 7644144356 update docs 2025-10-06 19:42:27 -07:00
zongor aea1dba6a2 Add wasm example, add paint example, ad neq opcodes, fix load/save VM, 2025-10-05 22:54:34 -07:00
zongor 71622c3133 add clangd to gitignore 2025-10-05 12:24:59 -07:00
zongor a5901e7399 get rid of hardcoded device buffers 2025-10-05 12:24:01 -07:00
zongor 19aa72018e WORKING PAINT PROGRAM! 2025-10-04 18:58:27 -07:00