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

 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:Solutionsection .text global _start ;for g

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site