Question1. (lesson 2)
In the following code we determine a number if its even or odd.
Explain what logic is used for that?
section .text
global
_start
;must be declared for using gcc
_start:
;tell linker entry point
mov ax,
8h
;getting 8 in the ax
and ax,
1
;and ax with 1
jz evnn
mov eax,
4
;system call number (sys_write)
mov ebx,
1
;file descriptor (stdout)
mov ecx,
odd_msg ;message...