added a compact tlv decoder for ATR historical bytes in 14a info

This commit is contained in:
iceman1001 2022-02-19 00:15:34 +01:00
commit 7310834b69
3 changed files with 90 additions and 15 deletions

View file

@ -158,11 +158,11 @@ extern bool g_tearoff_enabled;
// Nibble logic
#ifndef NIBBLE_HIGH
# define NIBBLE_HIGH(b) ( (b & 0xF0) >> 4 )
# define NIBBLE_HIGH(b) ( ((b) & 0xF0) >> 4 )
#endif
#ifndef NIBBLE_LOW
# define NIBBLE_LOW(b) ( b & 0x0F )
# define NIBBLE_LOW(b) ((b) & 0x0F )
#endif
#ifndef CRUMB