mercredi 3 mars 2021

First If statement is true and else is true too Assembly language

So while i was studying , i had this question in assembly language.

Mov y,50
Mov x,20
.if x<50 
Inc y
.elseif x <= 100
Mov y,0
.endif

So my question is , since X is less than 50 , then It will increase y. What then happen ? does it check if X <=100 , move y,0 or will it ignore that part since it satisfy the first condition ?

Aucun commentaire:

Enregistrer un commentaire