iod and oed are special function registers, no xdata!
authorhackbard <hackbard>
Sat, 24 Feb 2007 03:41:42 +0000 (03:41 +0000)
committerhackbard <hackbard>
Sat, 24 Feb 2007 03:41:42 +0000 (03:41 +0000)
fx2/fx2.c

index ddea734..800dd52 100644 (file)
--- a/fx2/fx2.c
+++ b/fx2/fx2.c
@@ -22,8 +22,8 @@ typedef unsigned short u16;
 typedef unsigned int u32;
 
 /* fx2 register */
-xdata at 0xb5 volatile u8 OED;
-xdata at 0xb0 volatile u8 IOD;
+sfr at 0xb5 OED;
+sfr at 0xb0 IOD;
 
 void power_on() {
 
@@ -33,8 +33,5 @@ void power_on() {
 
 void main() {
 
-       power_on;
+       power_on();
 }
-
-
-