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

MLOOKAT and DWRITEFMT fixed #36

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

DerelictDrone
Copy link
Member

@DerelictDrone DerelictDrone commented Dec 11, 2023

Should fix #34

MLOOKAT was missing a ) for its first three dyn_emits (this fixes all the 3d examples)

DWRITEFMT needed to have its % string checks replaced with %%%% to get them through the string.formats on Dyn_Emit and Emit, and a % operator use replaced with math.mod

self:Dyn_Emit("$L EYE = VM:ReadVector3f($2 + %s+0",seg2code)
self:Dyn_Emit("$L CENTER = VM:ReadVector3f($2 + %s+3",seg2code)
self:Dyn_Emit("$L UP = VM:ReadVector3f($2 + %s+6",seg2code)
self:Dyn_Emit("$L EYE = VM:ReadVector3f($2 + VM."..(self.EmitOperandSegment[2] or "DS").."+0)")
Copy link
Contributor

Choose a reason for hiding this comment

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

These can still use %s right?

Copy link
Member Author

@DerelictDrone DerelictDrone Dec 11, 2023

Choose a reason for hiding this comment

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

Actually yeah, that was how I fixed it initially(just adding the right parenthesis), I think I copy & pasted the original lines to test if the behavior was the same and forgot to put the fixed ones that use seg2code back, thank you for spotting that

@DerelictDrone DerelictDrone merged commit 21a5a2a into wiremod:master Dec 13, 2023
1 check failed
@DerelictDrone DerelictDrone deleted the gpu-instructions-fixed branch January 1, 2024 10:45
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.

Some GPU Instructions are failing
2 participants