Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/native/x86/sysv.S # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / native / x86 / sysv.S` 50 lines ยท 1067 bytes Raw Blame History 1 /* SysV AMD64 callee-save oracle. Takes code, result, and two integer slots. 2 * This is a foreign caller test, not the bridge implementation. */ 3 .text 4 .globl x86_sysv_probe 5 .type x86_sysv_probe,@function 6 x86_sysv_probe: 7 pushq %rbx 8 pushq %rbp 9 pushq %r12 10 pushq %r13 11 pushq %r14 12 pushq %r15 13 movq %rdi, %r10 14 movq %rsi, %rdi 15 movq %rdx, %rsi 16 movq %rcx, %rdx 17 subq $8, %rsp 18 movq $0x12345671, %rbx 19 movq $0x12345672, %rbp 20 movq $0x12345673, %r12 21 movq $0x12345674, %r13 22 movq $0x12345675, %r14 23 movq $0x12345676, %r15 24 call *%r10 25 cmpq $0x12345671, %rbx 26 jne .Lbad 27 cmpq $0x12345672, %rbp 28 jne .Lbad 29 cmpq $0x12345673, %r12 30 jne .Lbad 31 cmpq $0x12345674, %r13 32 jne .Lbad 33 cmpq $0x12345675, %r14 34 jne .Lbad 35 cmpq $0x12345676, %r15 36 jne .Lbad 37 jmp .Ldone 38 .Lbad: 39 movl $99, %eax 40 .Ldone: 41 addq $8, %rsp 42 popq %r15 43 popq %r14 44 popq %r13 45 popq %r12 46 popq %rbp 47 popq %rbx 48 ret 49 .size x86_sysv_probe, .-x86_sysv_probe 50 .section .note.GNU-stack,"",@progbits