Re:New inline assembly syntax available in Rust nightly
by hyperman1 on Tuesday June 09, 2020 @12:47PM
(#23468230)
The intel syntax has some nice gotchas though as the scale can be 1. I believe there is [eax+ebp] which uses the ds segment, but [ebp+eax] uses ss.
[ Parent
| on HN ]
Re:New inline assembly syntax available in Rust nightly
by exmadscientist on Tuesday June 09, 2020 @01:38PM
(#23468829)
The really fun bit is when you explicitly want to force one form or other, for some reason. Usually this is related to instruction length, but occasionally you used to run into times when one form could help avoid a stall.
Keeping tricks like that stable and clearly documented is, uh, not for the faint of heart.