Skip to content

MS fastcall 32 #25

@nidud

Description

@nidud

Seems the register params in 32-bit are not fixed to param index.

foo proc a1:dword, a2:real4, a3:dword

    add ecx,a1  ; add ecx,ecx
    add edx,a3  ; add edx,edx
    ret         ; ret 4

foo endp

bar proc

;   mov     edx, 3
;   push    0x40000000
;   mov     ecx, 1

    invoke foo, 1, 2.0, 3

;   push    dword ptr [ebx]

    invoke foo, ecx, [ebx], edx
    ret

bar endp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions