Re: PIC If...then....else directive
From: Gary Kato (garykato_at_aol.com)
Date: 07/23/04
- Next message: Tauno Voipio: "Re: design advice"
- Previous message: garcia916: "SDIO Pectec Camera"
- In reply to: Gary Charlton: "PIC If...then....else directive"
- Next in thread: Byron A Jeff: "Re: PIC If...then....else directive"
- Reply: Byron A Jeff: "Re: PIC If...then....else directive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Tauno Voipio: "Re: design advice"
- Previous message: garcia916: "SDIO Pectec Camera"
- In reply to: Gary Charlton: "PIC If...then....else directive"
- Next in thread: Byron A Jeff: "Re: PIC If...then....else directive"
- Reply: Byron A Jeff: "Re: PIC If...then....else directive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|