I'm just having a small issue with a problem that they gave me. Basically, I have a C file with the following statement:
int my_pid;
// Print the process' PID
GetPID(&my_pid);
printf("My PID is %d.\n", my_pid);
In a separate .asm file, I have the following function:
global GetPID
GetPID:
; Implementation goes here...
ret
How do I make it so that I can use the variable "my_pid" in the asm file?
Everything is already properly linked in the makefile so it's more of an issue that I don't know enough assembly and I haven't found any clear explanation on this topic.
Any help is greatly appreciated!