POKE verb of the Monitor.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 3 Jun 2009 17:58:02 +0000 (17:58 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 3 Jun 2009 17:58:02 +0000 (17:58 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@24 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/apps/goodfet.c
firmware/apps/monitor/monitor.c

index c5e037e..b6d8a06 100644 (file)
@@ -49,11 +49,11 @@ int main(void)
   \r
   init();\r
   \r
+  //Ready\r
+  txdata(MONITOR,OK,0);\r
+  \r
   //Command loop.  There's no end!\r
   while(1){\r
-    //Ready\r
-    txdata(MONITOR,OK,0);\r
-    \r
     //Magic 3\r
     app=serial_rx();\r
     verb=serial_rx();\r
index 0bb7838..defa814 100644 (file)
@@ -10,6 +10,10 @@ void monitorhandle(unsigned char app,
     txdata(app,verb,1);
     break;
   case POKE:
+    //Todo, make word or byte.
+    memorybyte[cmddataword[0]]=cmddata[2];
+    cmddata[0]=memorybyte[cmddataword[0]];
+    txdata(app,verb,1);
     break;
   }
 }