We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the following function:
pub unsafe fn load_u8(p: *const u8) -> u8 { let mut ret: u8; std::arch::asm!( "mov {ret}, byte ptr [{p}]", p = in(reg) p, ret = lateout(reg_byte) ret, options(nostack) ); ret }
Flowistry does not highlight the use of "p" in the asm! invocation: It also does not highlight that ret is written to by it:
Since in(reg) p and lateout(reg_byte) ret explicitly specify those 2 things, it should be possible to recognize these. The rust reference has a page explaining the asm! syntax: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
in(reg) p
lateout(reg_byte) ret
Tested only with the vscode marketplace extension on windows 10 21H2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For the following function:
Flowistry does not highlight the use of "p" in the asm! invocation:
It also does not highlight that ret is written to by it:
Since
in(reg) p
andlateout(reg_byte) ret
explicitly specify those 2 things, it should be possible to recognize these. The rust reference has a page explaining the asm! syntax: https://doc.rust-lang.org/nightly/reference/inline-assembly.htmlTested only with the vscode marketplace extension on windows 10 21H2
The text was updated successfully, but these errors were encountered: