18 June 2012, 20:15 | #1 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 296
|
WinUAE and Windows dll...
Hi all,
I try to use the vector $f0ffc0 to interface winuae to a Windows dll (TM) (R) (c). It works fine with unsigned long values, but how evil to share buffers ?. Address space are completly different!! Any idea ? please section text,code ; input A0 dllname ; output D0 dllhandle DLLOpen moveq #100,D0 jsr $00f0ffc0 rts ; input D1 dllhandle DLLClose moveq #103,D0 jsr $00f0ffc0 rts ; input D1 dllhandle ; A0 function or variable name ; output D0 function or variable address DLLGetFuncAddr moveq #101,D0 jsr $00f0ffc0 rts ; input A0 function address ; output D0 return DLLExec moveq #102,D0 jsr $00f0ffc0 rts end |
19 June 2012, 16:46 | #2 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 296
|
I've found a tip!
; input void ; output D0 return memory offset DLLGetMemoryOffset moveq #105,D0 jsr $00f0ffc0 rts This routine computes the offset between address 0 and the real memory offset in Windows world. All buffers must be allocated in CHIP, for example toto = AllocMem(512, MEMF_CHIP), then DLLGetMemoryOffset()+toto matches exactly the buffer toto in the DLL. So I can build strange dll for winuae now! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MSVC100.dll error WinUAE 64 | MrX_Cuci | support.WinUAE | 1 | 26 February 2013 22:21 |
WinUAE for Windows RT...? | chiark | support.WinUAE | 5 | 11 December 2012 09:43 |
WinUAE for Windows 8 ARM? | Mequa | request.UAE Wishlist | 6 | 27 October 2011 19:40 |
winuae.net down (as usual). Another place to download portaudio dll? | ceztko | support.WinUAE | 1 | 12 May 2009 15:22 |
WinUAE on Windows 2000 | el_clubber | support.WinUAE | 2 | 21 June 2002 08:14 |
|
|