Write a short assembly code that does the following Add the
Write a short assembly code that does the following:
Add the contents of rax to rbx.
If the result is positive, then make rcx zero
else, do nothing
Solution
add %rbx %rax //The add instruction adds together its two operands, storing the result in its first operand
mov %rcx, 0 //store the value 0 into rcx
Endcase:
L1:
Endcase:
