V Forum

[ log in ]

Will there be inline assembly in the future?

SleepyRoy 2019-06-11 23:27
For example,

a := 10
asm {
mov eax, [a]
add eax, 10
mov [a], eax
}
medvednikov 2019-06-11 23:49
Yes, probably with `$if arch` blocks to ensure compatibility:

a := 10
$if x64 {
asm {
mov eax, [a]
add eax, 10
mov [a], eax
}
}
medvednikov 2019-06-11 23:55
Or simply

asm x64 {
mov eax, [a]
add eax, 10
mov [a], eax
}



Powered by Vorum, open-source blogging/forum software written in V