nullndvoid
fb84a6d3c3
assembler: clippy lints, better error formatting
...
Adds regex dependency and enhances error handling system
Introduces comprehensive error type hierarchy with specific variants for parser, symbol, codegen, threading, and IO errors to improve error reporting and debugging capabilities.
Adds regex crate for pattern matching in tokenizer implementation with pre-compiled patterns for labels, registers, immediates, directives, instructions, and symbols.
Enhances source info functionality with context printing and error underlining similar to compiler diagnostics.
Implements better error conversions and threading error handling for lock failures and panics.
2025-06-25 16:50:17 +01:00
nullndvoid
4e5db58a84
assembler: start refactoring/rewriting tokeniser
2025-06-25 14:48:45 +01:00
nullndvoid
11a57eab51
assembler: apply clippy lints
2025-06-25 14:33:48 +01:00
nullndvoid
20a7d42adb
assembler: we failing DSA with this one
2025-06-25 14:31:53 +01:00
nullndvoid
9232f2ccab
assembler: great leap forwards (more like the Cultural Revolution)
2025-06-25 03:26:50 +01:00
nullndvoid
ce76820b6d
assembler: begin wrangling
2025-06-25 02:25:46 +01:00
nullndvoid
f72f36cd47
assembler: save currently broken refactors, its simpler to wipe then rebuild the assembler
2025-06-25 02:19:00 +01:00
nullndvoid
11ba09ab43
assembler: broke everything, currently modularising
2025-06-24 23:19:20 +01:00
nullndvoid
65efa8d423
misc: fix some clippy errors
2025-06-24 22:15:51 +01:00
nullndvoid
ebae99811b
misc: get rid of some errors from Cargo lol
2025-06-24 22:10:55 +01:00
zxq5
77331f65ab
idk, i refactored some stuff ig
2025-06-24 22:10:55 +01:00
zxq5
6f2bb477ac
finished the interpreter
2025-06-24 22:09:55 +01:00
zxq5
d87bf6bbb0
progress on debugging bf.dsa
2025-06-24 22:09:55 +01:00
zxq5
449612ac19
added step(n) feature to emulator, allowing for stepping n instructions at a time
2025-06-24 22:09:55 +01:00
zxq5
987c2b4b9a
updated dependencies
2025-06-24 22:09:55 +01:00
zxq5
a55dfe616e
finished refactor of emulator - started on loader (needs significant changes before functional in the way that I would like)
2025-06-24 22:09:55 +01:00
zxq5
2c44f48232
added error handling to emulator
2025-06-24 22:09:55 +01:00
nullndvoid
00a28e7711
elf: will start using clap to parse assembler arguments for CLI
...
I am tired af for some reason
2025-06-23 21:30:48 +01:00
nullndvoid
ed479ac146
assembler: purge unwrap and use more AssembleErrors
2025-06-23 19:39:49 +01:00
nullndvoid
f432fe7665
misc: clippy lint fixes
2025-06-23 18:23:01 +01:00
nullndvoid
083628ec7e
emulator: builds still don't actually work, will look into ELF stuff
2025-06-23 18:13:08 +01:00
zxq5
ddd0c27893
found a cause of a memory bug in emulator - fix is TODO ( #6 ) - continued working on brainf interpreter. we really need better debugging tools tbh.
2025-06-23 00:31:09 +01:00
zxq5
b8091222a4
working on bf.dsa (brainf##k interpreter) cos fun
2025-06-22 16:14:51 +01:00
zxq5
6ea3a76d74
fixed some bugs with file picker & loading different file types - will start working on brainf##k interpreter tomorrow because a compiler isn't enough.
2025-06-22 05:19:55 +01:00
zxq5
2b777f55c7
Merge remote-tracking branch 'refs/remotes/origin/main'
2025-06-22 03:54:44 +01:00
zxq5
808b51ff5f
updated emulator to support importing .dsb binaries
2025-06-22 03:52:11 +01:00
zxq5
7892c44d89
updated print with new functions
2025-06-22 03:51:39 +01:00
zxq5
9c56258c48
assembler changes & brainf##k compiler lmao
2025-06-22 03:51:16 +01:00
nullndvoid
c7322d8171
emulator on android: crashes but APKs are building
2025-06-22 03:46:42 +01:00
nullndvoid
a878483923
emulator: fix build errors in main.rs
2025-06-22 02:21:08 +01:00
nullndvoid
b97dcd5692
emulator: start supporting Android, this is WIP
...
Needs storage permissions, probably extra tweaks
2025-06-22 02:13:06 +01:00
nullndvoid
83259b9217
emulator: use egui file pickers rather than native ones
...
TODO: Add file types when picking? This is a regression
2025-06-22 02:12:26 +01:00
nullndvoid
bbf893290f
misc: more clippy fixes, **switched to stable**
...
The switch was due to rust-analyzer bug on latest nightly, please use stable until [this bug](https://github.com/rust-lang/rust-analyzer/issues/20051 ) is fixed
2025-06-22 00:42:44 +01:00
nullndvoid
1907bbb200
misc: clippy fixes
2025-06-22 00:30:27 +01:00
nullndvoid
22a8785083
emulator: cut down on cfg directives
2025-06-22 00:03:48 +01:00
zxq5
528ceddade
refactor & fixed assembler path handling
2025-06-21 04:05:22 +01:00
zxq5
42c26d4184
added a create-project system to assembler, and fixed a couple of parsing bugs
2025-06-20 03:25:28 +01:00
zxq5
f791b05292
idk what changes i made
2025-06-19 23:30:32 +01:00
zxq5
52e2306fca
refactoring assembler
2025-06-19 23:28:53 +01:00
zxq5
5c83b49328
fixed some clippy warns
2025-06-19 18:50:57 +01:00
nullndvoid
a48dfee777
misc: revert "purged .unwrap()"
...
Harry is an idiot @zxq5 is also an idiot
This reverts commit d4e538a2b3 .
2025-06-19 17:01:04 +01:00
zxq5
d4e538a2b3
purged .unwrap()
2025-06-19 16:57:43 +01:00
nullndvoid
78512d95e9
tests: update to reflect new argument ordering
2025-06-19 16:46:07 +01:00
nullndvoid
6f834025ed
emulator: imports work relatively to file being assembled (set cwd)
2025-06-19 16:35:00 +01:00
nullndvoid
b5ce5e0011
emulator: run by default and auto add the config feature
2025-06-19 16:16:13 +01:00
nullndvoid
7bdeab58a1
merge zxq5 changes with mine lol
2025-06-19 15:53:55 +01:00
nullndvoid
81433dcbcd
misc: apply clippy lints
2025-06-19 15:51:23 +01:00
zxq5
d5a690563b
fixed some clippy errors
2025-06-19 15:44:42 +01:00
zxq5
c1d72e8d4c
Merge remote-tracking branch 'refs/remotes/origin/main'
2025-06-19 15:21:07 +01:00
zxq5
e308362533
idk
2025-06-19 15:18:48 +01:00