Write x86 code to branch to label L1 the value in eax is les
Write x86 code to branch to label L1 the value in %eax is less than or equal to the value in %ebx. Comment your code:
Solution
section .text
global _start ;for gcc, declaring
_start: ;emtry point
mov eax, [num1] ;storing numbers
mov ebx, [num2]
cmp eax,ebx ; comparing both numbers
JLE L1 ; checking less than or equal.. if so jump to L1
