summaryrefslogtreecommitdiffstats
path: root/test/sdcc18/test18.c
blob: 00dc3752a143925b5e1de326fb03927c9ba18b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <pic18f452.h>

void main(void)
{
  float f = TRISA;
  int a = TRISB;
  LATA = 0xFF;
  LATAbits.LATA1 = 0;
//       UIE = 0x55;
  f /= a;
  a = f;
  TRISA = a;
  while(1);
}