diff options
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/cdriso.h | 1 | ||||
| -rw-r--r-- | libpcsxcore/cdrom.c | 3 | ||||
| -rw-r--r-- | libpcsxcore/cdrom.h | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libpcsxcore/cdriso.h b/libpcsxcore/cdriso.h index 896dbf82..f263548f 100644 --- a/libpcsxcore/cdriso.h +++ b/libpcsxcore/cdriso.h @@ -24,7 +24,6 @@ void imageReaderInit(void); #define MSF2SECT(m, s, f) (((m) * 60 + (s) - 2) * 75 + (f)) -#define btoi(b) ((b) / 16 * 10 + (b) % 16) /* BCD to u_char */ #define CD_FRAMESIZE_RAW 2352 #define DATA_SIZE (CD_FRAMESIZE_RAW - 12) diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 63dd89b1..b2384671 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -87,9 +87,6 @@ unsigned char Test23[] = { 0x43, 0x58, 0x44, 0x32, 0x39 ,0x34, 0x30, 0x51 }; // so (PSXCLK / 75) / BIAS = cdr read time (linuzappz) #define cdReadTime ((PSXCLK / 75) / BIAS) -#define btoi(b) ((b)/16*10 + (b)%16) /* BCD to u_char */ -#define itob(i) ((i)/10*16 + (i)%10) /* u_char to BCD */ - static struct CdrStat stat; static struct SubQ *subq; 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; |
