mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-16 04:36:57 +00:00
jit: Implement arm32 instruction decoding logic
Introduces the core Arm32 decoder, including the instruction parsing mechanism and an initial set of defined instructions. Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
parent
2e2b5df20c
commit
a0ed4382a5
5 changed files with 308 additions and 337 deletions
10
src/main.cpp
10
src/main.cpp
|
|
@ -19,8 +19,14 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
pound::host::memory::arena_t arena = pound::host::memory::arena_init(256);
|
||||
pound::jit::decoder::arm32_init(arena, £::jit::decoder::g_arm32_decoder);
|
||||
pound::host::memory::arena_t arena = pound::host::memory::arena_init(8192);
|
||||
pound::jit::decoder::arm32_decoder_t decoder = {};
|
||||
pound::jit::decoder::arm32_init(arena, &decoder);
|
||||
/* Add r0, r0, #1 */
|
||||
pound::jit::decoder::arm32_decode(&decoder, 0xE2800001);
|
||||
/* Sub r0, r0, #1 */
|
||||
pound::jit::decoder::arm32_decode(&decoder, 0xE2400001);
|
||||
|
||||
#if 0
|
||||
gui::window_t window = {.data = nullptr, .gl_context = nullptr};
|
||||
(void)gui::window_init(&window, "Pound Emulator", 640, 480);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue