authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-15 19:40:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-16 10:27:40-07:00
logc2fa961b63cc32d9cecb8f33db465667c093f961
treedda695f5a79a7a6aa8ce71907b0de8aa6bdc0835
parent8a478b4e9e06ac0e0a59fc575222cf075aa64bc4

update docs


3 files changed, 5 insertions(+), 6 deletions(-)

doc/langref/Assembly Syntax Explained.zig +1-2
......@@ -53,8 +53,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {
5353 // memory locations - not only the memory pointed to by a declared indirect
5454 // output. In this example we list $rcx and $r11 because it is known the
5555 // kernel syscall does not preserve these registers.
56 : "rcx", "r11"
57 );
56 : .{ .rcx = true, .r11 = true });
5857}
5958
6059// syntax
doc/langref/inline_assembly.zig+2-4
......@@ -15,8 +15,7 @@ pub fn syscall1(number: usize, arg1: usize) usize {
1515 : [ret] "={rax}" (-> usize),
1616 : [number] "{rax}" (number),
1717 [arg1] "{rdi}" (arg1),
18 : "rcx", "r11"
19 );
18 : .{ .rcx = true, .r11 = true });
2019}
2120
2221pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {
......@@ -26,8 +25,7 @@ pub fn syscall3(number: usize, arg1: usize, arg2: usize, arg3: usize) usize {
2625 [arg1] "{rdi}" (arg1),
2726 [arg2] "{rsi}" (arg2),
2827 [arg3] "{rdx}" (arg3),
29 : "rcx", "r11"
30 );
28 : .{ .rcx = true, .r11 = true });
3129}
3230
3331// exe=succeed
lib/docs/wasm/Walk.zig+2
......@@ -787,6 +787,8 @@ fn expr(w: *Walk, scope: *Scope, parent_decl: Decl.Index, node: Ast.Node.Index)
787787 try expr(w, scope, parent_decl, full.ast.template);
788788 },
789789
790 .asm_legacy => {},
791
790792 .builtin_call_two,
791793 .builtin_call_two_comma,
792794 .builtin_call,