Re: How to implement conditional execution

2008-07-17 Thread Paul Brook
On Friday 27 June 2008, Julian Brown wrote: On Fri, 27 Jun 2008 15:52:22 +0530 Mohamed Shafi [EMAIL PROTECTED] wrote: If the condition in the 'if' instruction is satisfied the processor will execute the next instruction or it will replace with a nop. So this means that i can instructions

Re: How to implement conditional execution

2008-06-30 Thread Michael Meissner
On Fri, Jun 27, 2008 at 03:52:22PM +0530, Mohamed Shafi wrote: Hello all, For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any branch instructions. It only has jump instructions. For comparison operation it has this instruction: if cond Rx Ry execute this insn So

How to implement conditional execution

2008-06-27 Thread Mohamed Shafi
Hello all, For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any branch instructions. It only has jump instructions. For comparison operation it has this instruction: if cond Rx Ry execute this insn So compare and branch is implemented as if cond Rx Ry jmp Label If the

Re: How to implement conditional execution

2008-06-27 Thread Julian Brown
On Fri, 27 Jun 2008 15:52:22 +0530 Mohamed Shafi [EMAIL PROTECTED] wrote: If the condition in the 'if' instruction is satisfied the processor will execute the next instruction or it will replace with a nop. So this means that i can instructions similar to: if eq Rx, Ry add Rx, Ry add