Commit Graph

142 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 55b6145064 Add semicolon 2025-11-29 09:21:12 -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 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 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 739c3638a6 Code cleanup, add halt return type, add neg and abs ops, fix strings, 2025-10-26 14:49:00 -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 de9ab028b5 Dark mode for web, documentation updates 2025-10-25 12:57:14 -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 aea1dba6a2 Add wasm example, add paint example, ad neq opcodes, fix load/save VM, 2025-10-05 22:54:34 -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
zongor c71254f351 wip drawing apps 2025-10-04 18:01:42 -07:00
zongor 77033e121b Add malloc, load-r, load-r8. fix endianess, refactor devices, init box, init window drawing 2025-10-04 17:24:24 -07:00
zongor 807d5b8705 fix drawing, add ioctl for screen (wip), assembler fixes 2025-09-28 17:44:10 -07:00
zongor 7a42429cf2 load binary file 2025-09-26 16:06:56 -07:00
zongor 3c9603adea make read syscall more flexable; WIP bit shift ops 2025-09-25 17:24:56 -07:00
zongor 3733f432e7 fixed read syscall 2025-09-25 15:27:59 -07:00
zongor f650e8110b add and fibbonacci examples now working 2025-09-23 22:08:28 -07:00
zongor 77745c8880 WIP: nested labels, add, hello, and simple work now! 2025-09-22 23:29:25 -07:00
zongor 91061fe3c0 First working prototype for assembler! 2025-09-21 12:38:18 -07:00
zongor 3453b0fcd6 parser fixes 2025-09-21 10:09:14 -07:00
zongor 37ce661648 Add Linux TUI example 2025-09-21 16:23:26 +00:00
zongor 299e36172b add newline for test, (terminal sometimes clears output without '\n') 2025-09-21 09:18:53 -07:00
zongor f6a2cd8de9 fix syscall, update opcodes, fix tests 2025-09-21 09:15:25 -07:00
zongor a1266b9008 fix tests, add lips benchmarks 2025-09-20 14:55:47 -07:00