English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 30 July 2019, 23:21   #1
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Help For Native Code x86

Hi Toni,
maybe i think of you can help me.
I search of write x86 dll, but i have the problem:

A) for use "winuae_opendll" in amiga c program how file include for yse this function?

B) When find ultimate winuaesupport.h


Thanks a lot.

Thanks a lot for help.
By.
Zilog is offline  
Old 31 July 2019, 10:49   #2
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 193
Hi Zilog,

have you seen this archive on aminet ?
http://aminet.net/package/driver/other/anaiis_hostusb

and specially these files ?
Anaiis_hostusb/usbhcd_src/hostusbdll.asm
Anaiis_hostusb/usbhcd_src/hostusb.c

these functions are undocumented (but the UAE source code is perfectly readable ) and work only when "use native code" is on.
these functions open the door to an unknown universe and offer a big security hole for wicked people That's why I use it.
Gilloo is offline  
Old 31 July 2019, 15:07   #3
thellier
Registered User
 
Join Date: Sep 2011
Location: Paris/France
Posts: 207
Hello

You can see in aminet/Wazp3D sources how is called an x86 dll
especially in :
winuaenative.h
soft3d_open_dll.h
soft3d_pc_glue.h

About progs using x86
http://eab.abime.net/showthread.php?...&highlight=x86
thellier is offline  
Old 31 July 2019, 20:05   #4
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Quote:
Originally Posted by Gilloo View Post
Hi Zilog,..........

Very Thanks Gilloo!
Zilog is offline  
Old 31 July 2019, 20:07   #5
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Quote:
Originally Posted by thellier View Post

Very Thanks thellier,

but the link are not valid..."No Thread specified. If you followed a valid link, please notify the administrator" ......can repost the correct link.


Thanks.
Zilog is offline  
Old 01 August 2019, 09:33   #6
thellier
Registered User
 
Join Date: Sep 2011
Location: Paris/France
Posts: 207
it works
http://eab.abime.net/showthread.php?...&highlight=x86
thellier is offline  
Old 01 August 2019, 19:06   #7
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Quote:
Originally Posted by thellier View Post

Ok Theillier.
Now Work!


Thanks.
Zilog is offline  
Old 01 August 2019, 19:14   #8
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Quote:
Originally Posted by thellier View Post

Scusme Theillier,

but don't try solution:
i have sample "sum.dll" library into winuae dll dirctory on windows.



From amiga compile this simple instruction with Ade 2.95.3 with gcc.


The compile ruturn error that don't find funtion winuae_opendll().


I Suppose there isn't someting include.



#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char **argv)
{
int dllbase = winuae_opendll("sum.dll");
if( dllbase == 0 ) {
printf("Failed to open DLL\n");
}
return 0;
}


Thanks a lot for help.
Zilog is offline  
Old 08 August 2019, 16:58   #9
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 193
miss an include of the winuaenative.h file
where winuae_opendll() is defined.

you should find it in Wazp3D archive
http://aminet.net/package/driver/video/Wazp3D
Wazp3D/Wazp3D-src/winuaenative.h

I don't use gcc, but the SAS C and Devpac assembly for these funny experiments...
Gilloo is offline  
Old 08 August 2019, 19:54   #10
Zilog
Registered User

 
Join Date: May 2014
Location: Italy
Posts: 268
Quote:
Originally Posted by Gilloo View Post
miss an include of the winuaenative.h file
where winuae_opendll() i7...
Ok Gillo!


Thanks a lot!!!
Zilog is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Native code BCPL compiler for Amiga? steve_mynott Coders. Language 48 16 December 2018 19:41
Best way to write native code? arodgers support.FS-UAE 4 02 September 2016 19:53
FS-UAE Native Code? jdog320 support.FS-UAE 2 26 July 2016 11:03
native x86 code in WinUAE? Falk support.WinUAE 15 14 June 2008 12:58
SFS x86 native for WinUAE? YoJoe! support.WinUAE 8 17 October 2007 11:40

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06827 seconds with 15 queries