Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom DL Index opcode #14

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Conversation

Archez
Copy link

@Archez Archez commented Mar 17, 2024

This adds a custom DL opcode which treats the offset value of the incoming seg addr value as an "index" value. We then convert the index back into a true offset value based on the sizeof(Gfx) for the host so that we can handle the size differences between 32bit and 64bit machines while maintaining portability of archive files.

This solution is based on option 3 from HarbourMasters/2ship2harkinian#137 but passing index values instead or normalized offset values.

@louist103 louist103 merged commit eb2e092 into louist103:mm-rebase Mar 17, 2024
4 checks passed
louist103 added a commit that referenced this pull request Mar 27, 2024
* MM

* Work for MM

* Fixed palette issues in MM (#1)

* Fixed palette issues with MM

* Test

* opcode for open/close disps

* Gfx Debugger (#2)

* BitConverter: fix type correcteness in loop

* gbi: get rid of LoadUcode macros

* Gui: add ability to make a GuiImage out of a LUS::Texture

* Add GfxDebugger

* GfxDebugger: add C Bridge

* gfx_pc: expose internal state + intergrate debugger

* Add GfxDebuggerWindow

* Context: integrate GfxDebuggerWindow

* update CMakeLists.txt

* GfxDebugger: move inline code from header to cpp file

* clean up comments and add a check for empty stacks

* fix cmake

* conflict

* implement bg 1cyc (#4)

* Implement point lights (#5)

* Remove debugging code

* Framebuffer Effects 1.0 (#6)

* Add initial copy framebuffer and draw framebuffer commands

* Implement DirectX framebuffer copy

* Implement OpenGL framebuffer copy

* Implement Metal framebuffer copy

* tweaks for metal viewport and int conversion

* resolve opengl msaa

* remove unused code paths

* Fix graphics debugger on 64bit (#8)

* fix graphics debugger on 64bit

* wrap libgfxd use in define

* clang format

* Fix light blinking in clocktown (#9)

* Revert changes to ResourceManager.cpp

* Format

* Fix

* merge

* ad setFB command

* Fix WiiU

* fix switch build error (#10)

* Remove commented g/abi.h files

* fix token pasting error on some compilers (#11)

* fix pop back without size check (#12)

* fix dl cmd increment (#13)

* add custom opcode for managing offset dl calls on 64bit (#14)

---------

Co-authored-by: Nicholas Estelami <[email protected]>
Co-authored-by: Random <[email protected]>
Co-authored-by: Archez <[email protected]>
Co-authored-by: Rozelette <[email protected]>
Co-authored-by: briaguya <[email protected]>
@Archez Archez deleted the dl-index-opcode branch June 15, 2024 00:00
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