How do I use multiple if-else statements or the switch operator from C/C++ in Assembly?
Something like this in C:
if ( number == 2 )
printf("TWO");
else if ( number == 3 )
printf("THREE");
else if ( number == 4 )
printf("FOUR");
Or using switch:
switch (i)
{
case 2:
printf("TWO");
case 3:
printf("THREE");
case 4:
printf("FOUR");
}
Thanks.
Aucun commentaire:
Enregistrer un commentaire