[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Storing float variables
From: |
Abiel Fernandez |
Subject: |
[avr-gcc-list] Storing float variables |
Date: |
Thu, 5 Apr 2001 17:58:32 -0700 (PDT) |
I need to store a float variable in EEPROM.
I'm doing this using
asm("lds r23,flValor");
asm("lds r24,flDir");
asm("lds r25,flDir+1");
asm("rcall eeprom_wb");
asm("lds r23,(flValor)+1");
asm("adiw r24,1");
asm("rcall eeprom_wb");
asm("lds r23,(flValor)+2");
asm("adiw r24,1");
asm("rcall eeprom_wb");
asm("lds r23,(flValor)+3");
asm("adiw r24,1");
asm("rcall eeprom_wb");
being flvalor the varible, and flDir the location in
EEprom.
Is there another way to do this?
Thankyou,
Abiel Fernandez.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
- [avr-gcc-list] Storing float variables,
Abiel Fernandez <=