Rough draft of CALL/EXEC support for the Monitor.
[goodfet] / firmware / include / command.h
index ae9fd9e..7ec0f1c 100644 (file)
@@ -14,7 +14,7 @@
 //256 bytes, plus overhead
 //For chips with very little RAM.
 #define CMDDATALEN 0x104
-#warning Very little RAM.
+//#warning Very little RAM.
 #endif
 
 #ifndef CMDDATALEN
@@ -41,6 +41,8 @@ extern unsigned char silent;
 #define SETUP 0x10
 #define START 0x20
 #define STOP  0x21
+#define CALL  0x30
+#define EXEC  0x31
 #define NOK   0x7E
 #define OK    0x7F
 
@@ -110,6 +112,8 @@ void txword(unsigned int l);
 
 //! Transmit a debug string.
 void debugstr(const char *str);
+//! brief Debug a hex word string.
+void debughex(u16 v);
 
 //! Delay for a count.
 void delay(unsigned int count);