Results 1 to 10 of 10

Thread: OK, I need help from ASM men

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    OK, I need help from ASM men

    Hi all,

    it is some days I'm struggled trying to find a fix on how to dynamically correctly call external CDECL functions.
    Asper posted a bug in support area: http://www.thinbasic.com/community/p...r=all#note2246
    He is trying to use Blitz3d SDK library that is defined as CDECL.
    I've created a PowerBasic application that use that library and all is fine but in thinBasic calling that library produces a GPF on function exit.
    I'm quite sure I'm making something wrong or missing something in releasing stack used for function parameters when functions are CDECL.

    As you may know I'm not an expert in ASM, so I need some help.
    Can some ASM men out there help me to understand what to do in ASM for calling a CDECL function?

    Attached full PB and TB examples with library.

    Thanks a lot
    Eros
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •