[DiscordArchive] my bad, wanted to say FPU registers, not FPU stack.
[DiscordArchive] my bad, wanted to say FPU registers, not FPU stack.
Archived author: 4bhorrent • Posted: 2024-01-30T07:11:26.926000+00:00
Original source
my bad, wanted to say FPU registers, not FPU stack.
float10, since ST0 is 80bit wide, no?
Archived author: 4bhorrent • Posted: 2024-01-30T07:11:30.765000+00:00
Original source
yes
Archived author: robinsch • Posted: 2024-01-30T07:11:57.863000+00:00
Original source
FPU register stack is the right name
Archived author: robinsch • Posted: 2024-01-30T07:12:08.951000+00:00
Original source
ST(n) is just the relative position to the top of the stack
Archived author: robinsch • Posted: 2024-01-30T07:14:09.594000+00:00
Original source
Yes, each FPU stack register is 80 bit.
Archived author: robinsch • Posted: 2024-01-30T07:29:54.026000+00:00
Original source
You can also change the calling covention to cdecl (caller cleanup, integer return in EAX)
Archived author: 4bhorrent • Posted: 2024-01-30T07:44:24.526000+00:00
Original source
i have set it to default, which is __cdecl in my repo, just to keep the decomp a tiny bit less cluttered ^^
have not yet encountered a problem doing so, think it should be fine (do you set it explicitly?)
Archived author: robinsch • Posted: 2024-01-30T07:44:50.540000+00:00
Original source
I don't use ghidra <:idablazeit:1016819381403123745>
Archived author: 4bhorrent • Posted: 2024-01-30T07:44:51.904000+00:00
Original source
does the function signature etc look right to you then overall?
Archived author: robinsch • Posted: 2024-01-30T07:45:28.961000+00:00
Original source
Yeah the decompiled code just looks weird