mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
5b2046342b
This reverts commit 74e73edac1
.
19 lines
248 B
V
19 lines
248 B
V
fn main() {
|
|
a := 100
|
|
b := 20
|
|
mut c := 0
|
|
$if amd64 {
|
|
asm amd64 {
|
|
mov eax, a
|
|
add eax, b
|
|
mov c, eax
|
|
; =r (c) // output
|
|
; r (a) // input
|
|
r (b)
|
|
}
|
|
}
|
|
println('a: $a') // 100
|
|
println('b: $b') // 20
|
|
println('c: $c') // 120
|
|
}
|