nx_smoke_asm_test9.nx source
↩ module page · 19 lines · 665 B
1// smoke_asm_test9.nx -- empty source.
2
3// nx_safety_envelope:
4// intended_use: AUTO_APPLIED -- primitive-specific tuning queued
5// sil_target: SIL1
6// evidence: [bulk_applied_2026-05-16, see-file-comment-for-detail]
7// verdict: NOT_YET_EVALUATED
8
9import "nx_syscalls.nx"
10import "nxasm_v2.nx"
11
12func main() -> i64 {
13 let out: *u8 = alloc(64)
14 let n: i64 = assemble(0 as *u8, 0, out, 64)
15 if n == -2 { return __syscall(93, 202, 0, 0, 0, 0, 0) }
16 if n == -3 { return __syscall(93, 203, 0, 0, 0, 0, 0) }
17 if n < 0 { return __syscall(93, 200, 0, 0, 0, 0, 0) }
18 return __syscall(93, n & 0xFF, 0, 0, 0, 0, 0)
19}