30 July 2019, 23:21 | #1 |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
Help For Native Code x86
|
31 July 2019, 10:49 | #2 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 290
|
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. |
31 July 2019, 15:07 | #3 |
Registered User
Join Date: Sep 2011
Location: Paris/France
Posts: 275
|
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 |
31 July 2019, 20:05 | #4 |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
|
31 July 2019, 20:07 | #5 | |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
Quote:
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. |
|
01 August 2019, 09:33 | #6 |
Registered User
Join Date: Sep 2011
Location: Paris/France
Posts: 275
|
|
01 August 2019, 19:06 | #7 | |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
Quote:
Ok Theillier. Now Work! Thanks. |
|
01 August 2019, 19:14 | #8 | |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
Quote:
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. |
|
08 August 2019, 16:58 | #9 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 290
|
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... |
08 August 2019, 19:54 | #10 |
Registered User
Join Date: May 2014
Location: Italy
Posts: 419
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
native x86 code in WinUAE? | Falk | support.WinUAE | 20 | 21 January 2023 18:30 |
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 |
SFS x86 native for WinUAE? | YoJoe! | support.WinUAE | 8 | 17 October 2007 11:40 |
|
|