It appears that the usual approach to calling printf from aarch64 asm code that works just fine on Linux does not work on MacOS running on the Apple M1.
Is there any documentation that explains what has changed?
I find that the parameters that I put in x0..x2 are getting garbled in the printf output.
printf
does not take arguments in x1 or x2... – Siguzaprintf
call with your C compiler on MacOS and see how it looks. – Nate Eldredgex0
and everything else on the stack. – Nate Eldredge