Announcement

Collapse
No announcement yet.

Mixed-language programming

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mixed-language programming

    I need to call a DLL function written in Assembly language from my PBCC 4.0 program, and I'm a bit unsure how PB expects the returned value (a single-precision float). The function is called using CDECL calling convention. How should the assembly-language function return the value to the PB caller?

  • #2
    It's expected in st(0), the stack-top, of the FPU.

    FLD single_float

    Best regards,

    Bob Zale
    PowerBASIC Inc.

    Comment


    • #3
      Cool, thanks!

      Comment

      Working...
      X