We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07f266c + ae60402 commit 0b9a1e8Copy full SHA for 0b9a1e8
src/unsafe/asm.md
@@ -254,7 +254,8 @@ fn main() {
254
// String is stored as ascii in ebx, edx, ecx in order
255
// Because ebx is reserved, the asm needs to preserve the value of it.
256
// 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)
+ // 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.
259
260
unsafe {
261
asm!(
0 commit comments