Re: PIC If...then....else directive

From: Gary Kato (garykato_at_aol.com)
Date: 07/23/04


Date: 23 Jul 2004 21:26:26 GMT


>IF ADRESH > 0x2D
> GOTO LOOP
>ELSE
> GOTO LOOP1
>ENDIF
>

If this is assembly language (which it looks to be), then you have the wrong
idea about these directives. They are for conditional assembly. They are
equivalent to this in C:

#if adresh > 0x2d
   compile this
#else
   compile this
#endif

The directives don't generate code to read registers and decide which way to
go.



Relevant Pages

  • Re: PIC If...then....else directive
    ... ->IF ADRESH> 0x2D ... -If this is assembly language, ... compile this ... -The directives don't generate code to read registers and decide which way to ...
    (comp.arch.embedded)
  • Re: writing to a partition
    ... Assembly Language for the PC, 3d ed., by John Socha and Peter Norton, ... the 32 bit instructions and addressing are presented. ... It has assembler directives going up ... addressing modes and memory management ...
    (comp.os.linux.misc)
  • Re: for your languages
    ... what `to compile' means in computer programming? ... `high level programming language' means. ... Can you point out any definition of assembly language ... know, let alone specify which machine instructions are generated, then ...
    (comp.lang.c)
  • RE: Conditional Compilation question
    ... I'm not too sure about conditional compliation statements in Word, ... directives.. ... Set oApp = Nothing ... write and compile the code in the later version of Word. ...
    (microsoft.public.word.vba.general)
  • [PATCHSET 0-5] remove unneeded nfsd #includes
    ... Some arch files had unneeded #includes directives from linux/nfsd/*. ... In an effort to move some of the now public nfsd headers to the source ... please compile with this patch? ...
    (Linux-Kernel)