HomeForumsWhat's newResources 
 
 
Parameter and register ID
cafe-alpha - Jul 2, 2015
   cafe-alpha Jul 2, 2015 
Sorry for this simple question.

In assembly, just after BUP_Init is called, where (=which register ?) do address of tp is stored ?

#ifndef __GNUC__
#define BUP_Init ((void (*)(Uint32 *lib,Uint32 *work,BupConfig tp[3])) (BUP_LIB_ADDRESS))
#else
#define BUP_Init ((void (*)(volatile Uint32 *lib,Uint32 *work,BupConfig tp[3])) (BUP_LIB_ADDRESS))
#endif

edit : according to yabause sources, it is stored in R6.

   antime Jul 5, 2015 
KPIT have a document describing the GNU SH calling convention....

   cafe-alpha Jul 5, 2015 

  antime said:


Thank you !
This document is likely to help me next time I will have to mess with assembly things