Why is my code not working? Function one and two are correctly running.  Third function is setting both OF and CF third_func:     push rbp     mov rbp, rsp   ;  Set both the carry and overflow ;  flags.         stc     mov rax, 0x7FFFFFFFFFFFFFFF     add rax, 1       pop rbp     ret

icon
Related questions
Question

Why is my code not working? Function one and two are correctly running.  Third function is setting both OF and CF

third_func:
    push rbp
    mov rbp, rsp
 
;  Set both the carry and overflow
;  flags.
 
 
    stc
    mov rax, 0x7FFFFFFFFFFFFFFF
    add rax, 1
 
    pop rbp
    ret

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer