33-kernel::LibsPtr (Preos only)
Input:
a0.l -> Lib descriptor
d0.w = Number of the function
Output:
a0.l = Pointer to the function or NULL
Destroy:
a0
It gives a pointer to the required function of the library.
Là ya un vrai problème, d0 est détruit... Adress error à cause de ça dans mon programme (corrigé évidemment, mais bon ce fût la surprise ^^)
LibsPtr commence et finit par un movem.l d1-d2,-(sp)/(sp)+. Il est utilisé à deux autres endroits de sld (et dans aucun autre fichier). Chaque fois, d0 est écrasé immédiatement pour tester le résultat (move.l a0,d0). Il n'y a donc pas de problème pour faire un movem.l d0-d2.