code wiki / (root) / nx_smoke_asm_d9.nx

nx_smoke_asm_d9.nx source

↩ module page · 13 lines · 513 B

1// Dump byte at position 63 of the literal (where strlen stops). 2// nx_safety_envelope: 3// intended_use: AUTO_APPLIED -- primitive-specific tuning queued 4// sil_target: SIL1 5// evidence: [bulk_applied_2026-05-16, see-file-comment-for-detail] 6// verdict: NOT_YET_EVALUATED 7 8import "nx_syscalls.nx" 9 10func main() -> i64 { 11 let s: *u8 = ".text\n.globl main\nmain:\naddi sp, sp, -16\nsd ra, 8(sp)\nli a0, 30\nret\n" 12 return __syscall(93, s[63] & 0xFF, 0, 0, 0, 0, 0) 13}