Skip to content

Commit

Permalink
Merge pull request #1717 from PhilVoel/patch-1
Browse files Browse the repository at this point in the history
Improved wording in asm.md
  • Loading branch information
marioidival committed Jun 7, 2023
2 parents 07f266c + ae60402 commit 0b9a1e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unsafe/asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ fn main() {
// String is stored as ascii in ebx, edx, ecx in order
// Because ebx is reserved, the asm needs to preserve the value of it.
// So we push and pop it around the main asm.
// (in 64 bit mode for 64 bit processors, 32 bit processors would use ebx)
// 64 bit mode on 64 bit processors does not allow pushing/popping of
// 32 bit registers (like ebx), so we have to use the extended rbx register instead.

unsafe {
asm!(
Expand Down

0 comments on commit 0b9a1e8

Please sign in to comment.