Everything
9.4 Reference of Argument Defined by Other Language

The method of referring to the variable defined by the assembly language on the C language is shown below.

 

Example

Programming of C Language

extern  char    c;
extern  int     i;
 
void subf() {
        c = 'A';
        i = 4;
}

 

The CC-RH assembler performs as follows.

        .public _i
        .public _c
        .dseg   SDATA
_i:
        .db4    0x0
_c:
        .db     0x0