1 |
|
/* |
2 |
|
* macos_util.cpp - MacOS definitions/utility functions |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) Christian Bauer and Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
163 |
|
* lib and sym must be Pascal strings! |
164 |
|
*/ |
165 |
|
|
166 |
< |
uint32 FindLibSymbol(char *lib_str, char *sym_str) |
166 |
> |
uint32 FindLibSymbol(const char *lib_str, const char *sym_str) |
167 |
|
{ |
168 |
|
SheepVar32 conn_id = 0; |
169 |
|
SheepVar32 main_addr = 0; |
192 |
|
0x3f, 0x3c, 0x00, 0x01, // (GetSharedLibrary) |
193 |
|
0xaa, 0x5a, // CFMDispatch |
194 |
|
0x30, 0x1f, // move.w (a7)+,d0 |
195 |
< |
M68K_RTS >> 8, M68K_RTS |
195 |
> |
M68K_RTS >> 8, M68K_RTS & 0xff |
196 |
|
}; |
197 |
|
BUILD_SHEEPSHAVER_PROCEDURE(proc1); |
198 |
|
r.a[0] = lib.addr(); |
214 |
|
0x3f, 0x3c, 0x00, 0x05, // (FindSymbol) |
215 |
|
0xaa, 0x5a, // CFMDispatch |
216 |
|
0x30, 0x1f, // move.w (a7)+,d0 |
217 |
< |
M68K_RTS >> 8, M68K_RTS |
217 |
> |
M68K_RTS >> 8, M68K_RTS & 0xff |
218 |
|
}; |
219 |
|
BUILD_SHEEPSHAVER_PROCEDURE(proc2); |
220 |
|
r.d[0] = conn_id.value(); |