WIP: Works.

But I don't like it much yet.
This commit is contained in:
2025-02-19 00:03:36 +00:00
parent e4d67cc355
commit 62fd3a825c
4 changed files with 19 additions and 13 deletions

View File

@@ -16,7 +16,8 @@ void execute_library_function() {
while ((uint32_t)ptr < RAM_END) {
if (*ptr == LIB_MAGIC) {
printf("Found libpqscheme_test 0x%X!\n", ptr);
entry_point = RAM_START + (*(ptr + 1));
entry_point = (*(ptr + 1));
printf("Calling function at 0x%X\n", entry_point);
entry_point |= 1; // Ensure thumb mod
func_t test_func = (func_t)(entry_point);
if (test_func) {