Re: [AVR-Chat] the "case" statement
2005-02-21 by Leon Heller
----- Original Message -----From: EricSent: Monday, February 21, 2005 11:02 AMSubject: [AVR-Chat] the "case" statementHi all chat'ers
In C/C++ there is a "case" statement, is there such a thing in assembly code? and is there a example
around.
e.g here is the C version
switch( i )
{
case -1:
n++;
break;
case 0 :
z++;
break;
case 1 :
p++;
break;
}
how do you do the line containing the "switch( i )" in assembly code.
A 'jump table ' is the usual way to do
it.
Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller
http://www.geocities.com/leon_heller