diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-11-29 20:18:38 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-11-29 20:18:38 +0800 |
| commit | 3d38a12ca171490e22c7b56cd19c008f2dadfb83 (patch) | |
| tree | 543653494423391c02fa21f5688baa90c67fdabe /libpsn00b | |
| parent | 60deeff6e078271a17cf77c6204edbbde846f0bd (diff) | |
| download | psn00bsdk-3d38a12ca171490e22c7b56cd19c008f2dadfb83.tar.gz | |
Defined MDEC registers, corrected SquareRoot12() lookup table typo, updated memmove(), removed redundant toolchain definitions, added HDTV example
Diffstat (limited to 'libpsn00b')
| -rw-r--r-- | libpsn00b/include/hwregs_a.h | 12 | ||||
| -rw-r--r-- | libpsn00b/psxcd/isofs.c | 6 | ||||
| -rw-r--r-- | libpsn00b/psxgte/squareroot.s | 2 |
3 files changed, 16 insertions, 4 deletions
diff --git a/libpsn00b/include/hwregs_a.h b/libpsn00b/include/hwregs_a.h index d9f46ba..0680679 100644 --- a/libpsn00b/include/hwregs_a.h +++ b/libpsn00b/include/hwregs_a.h @@ -57,6 +57,10 @@ .set SPU_VOICE_ADSR_H, 0x0a .set SPU_VOICE_LOOP, 0x0e +# MDEC +.set MDEC0, 0x1820 +.set MDEC1, 0x1824 + # Pads .set JOY_TXRX, 0x1040 .set JOY_STAT, 0x1044 @@ -79,6 +83,14 @@ .set DPCR, 0x10f0 .set DICR, 0x10f4 +.set D0_MADR, 0x1080 +.set D0_BCR, 0x1084 +.set D0_CHCR, 0x1088 + +.set D1_MADR, 0x1090 +.set D1_BCR, 0x1094 +.set D1_CHCR, 0x1098 + .set D2_MADR, 0x10a0 .set D2_BCR, 0x10a4 .set D2_CHCR, 0x10a8 diff --git a/libpsn00b/psxcd/isofs.c b/libpsn00b/psxcd/isofs.c index 11dba6c..0122609 100644 --- a/libpsn00b/psxcd/isofs.c +++ b/libpsn00b/psxcd/isofs.c @@ -391,7 +391,7 @@ static int find_dir_entry(const char *name, ISO_DIR_ENTRY *dirent) char namebuff[16]; #ifdef DEBUG - printf("psxcd_dbg: Locating file %s.\n", name); + printf( "psxcd_dbg: Locating file %s.\n", name ); #endif i = 0; @@ -399,13 +399,13 @@ static int find_dir_entry(const char *name, ISO_DIR_ENTRY *dirent) while(dir_pos < _cd_iso_directory_len) { dir_entry = (ISO_DIR_ENTRY*)(_cd_iso_directory_buff+dir_pos); - + if( !(dir_entry->flags & 0x2) ) { strncpy(namebuff, _cd_iso_directory_buff+dir_pos+sizeof(ISO_DIR_ENTRY), dir_entry->identifierLen); - + if( strcmp(namebuff, name) == 0 ) { *dirent = *dir_entry; diff --git a/libpsn00b/psxgte/squareroot.s b/libpsn00b/psxgte/squareroot.s index a262d94..a038e18 100644 --- a/libpsn00b/psxgte/squareroot.s +++ b/libpsn00b/psxgte/squareroot.s @@ -111,7 +111,7 @@ sqrt_table: .hword 0x18a8,0x18bd,0x18d1,0x18e6,0x18fa,0x190f,0x1923,0x1938 .hword 0x194c,0x1960,0x1974,0x1988,0x199c,0x19b0,0x19c4,0x19d8 .hword 0x19ec,0x1a00,0x1a13,0x1a27,0x1a3a,0x1a4e,0x1a61,0x1a75 - .hword 0x1a88,0x1a9b,0x1aae,0x1ac2,0xa1d5,0x1ae8,0x1afb,0x1b0e + .hword 0x1a88,0x1a9b,0x1aae,0x1ac2,0x1ad5,0x1ae8,0x1afb,0x1b0e .hword 0x1b21,0x1b33,0x1b46,0x1b59,0x1b6c,0x1b7e,0x1b91,0x1ba3 .hword 0x1bb6,0x1bc8,0x1bdb,0x1bed,0x1c00,0x1c12,0x1c24,0x1c36 .hword 0x1c48,0x1c5a,0x1c6c,0x1c7e,0x1c90,0x1ca2,0x1cb4,0x1cc6 |
