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-RL assembler performs as follows.

        .PUBLIC _i
        .PUBLIC _c
        .SECTION        sdata, .DATA
_i:
        .DB4    0x0
_c:
        .DB     0x0