I have a c program (not c++) and it has a value declared as
int msgNumber = 5555
I also have an external assembler routine that the above C program calls and I want to pass it the address of the msgNumber value in the C program so the assembler program can update the value and then return to the calling C program
Can anyone explain to me how to do this please?
What have I tried,
I tried this:
int msgNumber = 5555;
VSHRTMSE(*msgNumber); /*Ask for first or next msg from msg table entry */
the complier did not care for that
ERROR CCN3018 src/c/VSHXYS.c:1480 Operand of indirection operator must be a pointer expression.
CCN0793(I) Compilation failed for file src/c/VSHXYZ.c. Object file not created.
FSUM8226 make: Error code 12
I am not a C programmer, and am beating my head against the wall trying to figure this out.