Files

12 lines
464 B
C

#include <exec/types.h>
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
/* WinUAE's documented uaelib stack-call interface, function 82. */
typedef ULONG (*UaeCall)(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
int main(void){volatile UWORD *entry=(volatile UWORD*)0xf0ff60;
UaeCall call=(UaeCall)entry;
if((entry[0]&0xf000)!=0xa000||entry[1]!=0x4e75)return 5;
return call(82,0xffffffff,(ULONG)"magic_mouse true win32.middle_mouse true",0,0,0)==0?0:20;
}