Repository navigation
Replies: 1 comment 5 replies
|
On 16-bit x86, passing a 4-byte
Workarounds in Ghidra:
|
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In a 16-bit Windows suit I have calls that instantiate copies of values immediately prior to placing those copies onto the stack as the parameter for a function call.
First I defined an object to hold the 2 values
struct paramType { int x; long y; };(that's 2+4=6 bytes).If I then define the called function like
void fn(int,long)Ghidra uses the initial variable for the1st parameter and part of the structure for the 2nd (see below)If I use the definition
void fn(paramType);Ghidra producesIn both cases
local_12.yis a singe assignment as a result of another call returning along.Any idea why any how to fix?
All reactions