some more random reverse engineering never committed.
[uccvend-snackrom.git] / ROM2 / vend.h
index 5d4f5ac..f2f7106 100644 (file)
@@ -27,11 +27,13 @@ extern volatile u8 _home_sensors;
 #define home_sensors _home_sensors
 
 #define is_standalone() (misc_input & 0x01) /* DIP sw 1 */
-#define must_verify()   !(misc_input & 0x02) /* DIP sw 2 */
+#define must_verify()   (misc_input & 0x02) /* DIP sw 2 */
+#define cant_poke()     (misc_input & 0x04) /* DIP sw 3 */
 
 extern u16 _stack;
 extern char _nvram[]; /* 2048 bytes of nvram! */
-// uncomment for testing. char _nvram[20]; /* 2048 bytes of nvram! */
+// uncomment for testing.
+//char _nvram[20];
 /* NVRAM map:
  *
  * START LEN
@@ -51,6 +53,7 @@ char* u82hex(u8 a);
 u8 hex2u8(char msb, char lsb);
 char nibble2hexchar(u8 b);
 u8 hexchar2u8(char b);
+bool ishex(char b);
 
 /******** Some meaningful bits ******/
 #define PORTA_CHIME         0x10 /* chime is on when set */

UCC git Repository :: git.ucc.asn.au