X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fvend.h;h=f2f710647e236f2d37378f4383bf09530a569437;hb=HEAD;hp=5d4f5ac9931a20064f73e973e7c5575e3f58640b;hpb=24f4e50d8f5671b40d2662bbcd50e3859bcd5205;p=uccvend-snackrom.git diff --git a/ROM2/vend.h b/ROM2/vend.h index 5d4f5ac..f2f7106 100644 --- a/ROM2/vend.h +++ b/ROM2/vend.h @@ -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 */