View Single Post
Old 30 December 2013, 19:34   #34
FS-UAE Developer

FrodeSolheim's Avatar
Join Date: Dec 2011
Location: Førde, Norway
Age: 37
Posts: 3,412
Originally Posted by Toni Wilen View Post
Why does return code need a pointer? I don't see why it can't work with async mode, return value in D0 should work exact same. (Or did I miss something?)
I wasn't sure if the registers of the caller's task could be easily updated by the task-resuming code. I should have asked I'll update the code to use D0 as a return register then! I can also then allow the native functions to return a long value to the D0 register.

I do have another question though, in ahidsound_dsonly.cpp, the dll function calls are done with some inline assembly code instead of calling via a C function prototype. Is this a "hack" to make it work with both cdecl / stdcall calling conventions in libraries.

Edit: I'm fine with cloning the OpenLibrary/CloseLibrary usage, but cannot be done until the functionality is moved away from the demux function.

Last edited by FrodeSolheim; 30 December 2013 at 19:45.
FrodeSolheim is offline  
Page generated in 0.05564 seconds with 9 queries