feat: basic flag challenge working + fix elf loading

This commit is contained in:
2026-05-08 00:20:26 +02:00
parent e4b65d544f
commit 5ec7d85b4e
8 changed files with 279 additions and 39 deletions

View File

@@ -1,5 +1,10 @@
#pragma once
#define EMU_MEM_SIZE 4096u
#define EMU_MEM_SIZE 16384u
#define EMU_PROGRAM_PATH "build/emulated.riscv.elf"
#define EMU_ENTRY_SYMBOL "entry"
#define STACK_SIZE 1024
#define RISCV_MEM_OFFSET 0x80000000
#define SIZE_USERDATA 512
#define SECTION_USERDATA (EMU_MEM_SIZE - STACK_SIZE - SIZE_USERDATA)