diff options
Diffstat (limited to 'libpcsxcore/cdrom.h')
| -rw-r--r-- | libpcsxcore/cdrom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/cdrom.h b/libpcsxcore/cdrom.h index 70f93a5d..64ee73f4 100644 --- a/libpcsxcore/cdrom.h +++ b/libpcsxcore/cdrom.h @@ -28,6 +28,9 @@ #include "psxmem.h" #include "psxhw.h" +#define btoi(b) ((b)/16*10 + (b)%16) /* BCD to u_char */ +#define itob(i) ((i)/10*16 + (i)%10) /* u_char to BCD */ + typedef struct { unsigned char OCUP; unsigned char Reg1Mode; |
