English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 18 June 2012, 20:15   #1
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 173
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
Gilloo is offline  
Old 19 June 2012, 16:46   #2
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 173
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!
Gilloo 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
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

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 11:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06460 seconds with 13 queries