Revision: 1226
Author: [email protected]
Date: Thu Aug 20 15:37:39 2009
Log: fix for 256 loop issue
http://code.google.com/p/jallib/source/detail?r=1226
Modified:
/trunk/sample/16f88_remember_me.jal
=======================================
--- /trunk/sample/16f88_remember_me.jal Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f88_remember_me.jal Thu Aug 20 15:37:39 2009
@@ -95,9 +95,16 @@
print_string(serial_hw_data,str)
var byte i
-- fill eeprom with zero
- for 256 using i loop
+
+
+ -- for 256 using i loop does not work in JAL
+ -- therefore use repeat unitl loop instead
+ i = 0
+ repeat
data_eeprom_write(i,0)
- end loop
+ i = i + 1
+ until i == 0
+
var byte str2 [] = "done !"
print_string(serial_hw_data,str2)
print_crlf(serial_hw_data)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---