int main(void){
printf("Hello World");
return 0;
}
How is 0 passed as return value at assembly level? Is there a dedicated CPU registry for this job?
UPDATE
Here are 2 tables for transferring / returning data in pdf format, but it does not seem to have accurate information on how the API calling convention is determined and which register is used to store the return address:


source
share