Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// vtest build: !msvc
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user