> you somehow know which registers contains which variable.

You can use the backticks to get existing variables, see the docs at 
<https://nim-lang.org/docs/manual.html#statements-and-expressions-assembler-statement>

Reply via email to