Greetings,
I am currently trying to convert code from a old compiler to a new one. Specifically GNU Gcc/G++.
Is it possible to return anything from a inline assembler call?
for example:
I keep getting a parse error while compiling and I am not sure why.Code:#ifdef HEAP_DEBUG unsigned long int iTemp; iTemp = asm(" move.l __HEAP,d0"); iCurrentHeapSize = iTemp - iHeapBasePointer; if(iCurrentHeapSize > iMaxHeapSize) { iMaxHeapSize = iCurrentHeapSize; } #endif
Is the line of code in red the correct way to return values?
(My assumption, I am not the original coder.)
Thanks for your time.