when I call asm macro, I want to pass the function param into it, but I got the below error?
fn test(xx: usize) {
// const yy: usize = xx;
unsafe {
asm!(
"li a0, {arg0}",
arg0 = xx,
)
}
}
error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `out`, or `sym`, found `xx`
--> src/main.rs:85:16
|
85 | arg0 = xx,
| ^^ expected one of 7 possible tokens