Online Compiler Nasm

%include "io.inc" section .text global main main: GET_DEC 4, eax mov ebx, eax sar ebx,31 xor eax, ebx and ebx, 1 add eax, ebx PRINT_DEC 4, eax xor eax, eax ret
1) This code reads a signed integer, computes its absolute value using bit manipulation, and prints the result.

2) Hint: The `sar ebx,31` instruction creates a mask based on the sign of the original number.
   Hint: The sequence of XOR, AND, and ADD operations handles both positive and negative cases without branching.