HRM, I am beginning to feel like implementing ARM this way is a bad idea.
Anyone have any advice on making this feel less crap?
(memory is a 4GiB of (mostly) PROT_NONE memory)
@gudenau For the execute switch, what about
And for the memory access, what about creating C++ structs/classes and overloading, so you could do something like
memory->u64[x] (returns an uint64_t)
memory->u32[x] (returns an uint32_t)
@Neui I have no idea how you could do that memory thing, it's a void pointer.
@Neui I also used a switch for the execution thing to hopefully create a jump table. Figured that would be a fastish way to implement it.
@gudenau I meant something like https://gist.github.com/Neui/054ff5a261408b81bd83a5aa9533199f
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!