Skip to content

Conversation

@queueRAM
Copy link
Contributor

  • Decompile uvSysInit
  • Decompile uvFileRead
  • Decompile uvFileWrite
  • Decompile bootproc
  • Decompile uvReadController (formerly func_8022EB38)
  • Decompile uvGfxSetFlags (formerly func_802239B4)
  • Decompile uvGfxClearFlags (formerly func_802239EC)
  • Decompile func_8022E558

- Decompile uvSysInit
- Decompile uvFileRead
- Decompile uvFileWrite
- Decompile bootproc
- Decompile uvReadController (formerly func_8022EB38)
- Decompile uvGfxSetFlags (formerly func_802239B4)
- Decompile uvGfxClearFlags (formerly func_802239EC)
- Decompile func_8022E558
@queueRAM
Copy link
Contributor Author

Huge help from @Bl00D4NGEL getting uvFileRead, uvFileWrite, uvReadController, func_8022E558 to match

GLOBAL_ASM_C_FILES := $(shell $(GREP) GLOBAL_ASM $(SRC_DIR) </dev/null 2>/dev/null)
GLOBAL_ASM_O_FILES := $(foreach file,$(GLOBAL_ASM_C_FILES:.c=.o),$(BUILD_DIR)/$(file))

DEFINES := -D_LANGUAGE_C -D_FINALROM -DWIN32 -DNDEBUG -DTARGET_N64 -DCOMPILING_LIBULTRA
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove -D_FINALROM to get the prototype for __osInitialize_emu() from os_host.h, but there might be a better way to go about this.

Copy link
Owner

@gcsmith gcsmith Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't strike me as correct.

I suspect __osInitialize_emu() is a bad match because it's a generic one-liner that assigns a global variable, and it appears in a translation unit filled with engine functions rather than libultra functions.

Initially I used n64sym to match libultra symbols which tends to produce false positives. Then I learned about flib later, which is not as eager to match ambiguous symbols.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, __osInitialize_emu() doesn't seem correct. I'll put _FINALROM back in and remove the __osInitialize_emu symbol

@gcsmith
Copy link
Owner

gcsmith commented Jan 16, 2026

Nice work! I'd just prefer to address the FINALROM concern before merging.

@gcsmith gcsmith merged commit 2d1f6bf into gcsmith:main Jan 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants