Skip to content

Commit 0b9a1e8

Browse files
authored
Merge pull request #1717 from PhilVoel/patch-1
Improved wording in asm.md
2 parents 07f266c + ae60402 commit 0b9a1e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unsafe/asm.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ fn main() {
254254
// String is stored as ascii in ebx, edx, ecx in order
255255
// Because ebx is reserved, the asm needs to preserve the value of it.
256256
// So we push and pop it around the main asm.
257-
// (in 64 bit mode for 64 bit processors, 32 bit processors would use ebx)
257+
// 64 bit mode on 64 bit processors does not allow pushing/popping of
258+
// 32 bit registers (like ebx), so we have to use the extended rbx register instead.
258259

259260
unsafe {
260261
asm!(

0 commit comments

Comments
 (0)