Amit Kumar

MC9S08KA2 - Programming

Discussion created by Amit Kumar on Mar 8, 2008
Latest reply on Mar 9, 2008 by bigmac
I am new to asm programming.
Can anyone tell the asm code for following pseudo code.
 
I am using PORT 0, and PORT 1 as digital  i/p.
the trying ti write some condiitions ..
If(PORT_0 == 1 && PORT_1 == 0)
{
      DO SOMETHING
}
ELSEIF(PORT_0 == && PORT_1 == 0)
{
     DO SOMETHING
}
ELSE(PORT_0 ==  0 && PORT_1 == 1)
{
      DO SOMETHING
}
 
I want to use IF - ELSE in my code, if there is any instruction for this then kindly answer me.
or tell me syntax to use IF - ELSE loop
 
kindly, try to answer urgently.
thanks. 

Outcomes