[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Erasing For Loop
From: |
Gary Griswold |
Subject: |
[avr-gcc-list] Erasing For Loop |
Date: |
Thu, 7 Apr 2005 21:21:33 -0700 (PDT) |
Two not very amazing code fragments:
DDRA = 0xFF;
//Where m= month, k=day, c=century and d=year number.
k = t.day;
c = t.year/100;
d = t.year-c*100;
m = t.month;
DayNum = day_of_week ( m,k,c,d );
PORTA = DayNum;
This little code fragment ran nicely.
-------------------------------------
DDRA = 0xFF;
//Where m= month, k=day, c=century and d=year number.
k = t.day;
c = t.year/100;
d = t.year-c*100;
// m = t.month;
for ( m=1; m==12; m++) {
DayNum = day_of_week ( m,k,c,d );
PORTA = DayNum; }
This little code fragment ran not at all.
It's as if the loop does not exist;
as a matter of fact, the loop ERASED THE CODE!
WHAT have I got set wrong???
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- [avr-gcc-list] Erasing For Loop,
Gary Griswold <=