Skip to content

Blog post on new inline assembly syntax #600

New issue

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

Merged
merged 11 commits into from
Jun 8, 2020
Prev Previous commit
Next Next commit
Improve comment in syscall example: fd 1 is stdout
  • Loading branch information
joshtriplett committed May 26, 2020
commit cc2509ab692e28ab8dbb9631adf1ceea5fc071fe
2 changes: 1 addition & 1 deletion posts/inside-rust/2020-05-25-new-inline-asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn main() {
asm!(
"syscall",
in("rax") 1, // syscall number
in("rdi") 1, // fd
in("rdi") 1, // fd (stdout)
in("rsi") buf.as_ptr(),
in("rdx") buf.len(),
out("rcx") _, // clobbered by syscalls
Expand Down