Fix warning (-Wimplicit-int)

This commit is contained in:
LibretroAdmin 2022-09-05 01:28:42 +02:00
parent a821de094d
commit f7c1b002ee
2 changed files with 8 additions and 6 deletions

View File

@ -282,13 +282,13 @@ void FDSSoundReset(void) {
GameExpSound.RChange = FDS_ESI;
}
DECLFR(FDSSoundRead) {
uint8 FDSSoundRead(uint32 A) {
if (A >= 0x4040 && A < 0x4080) return FDSWaveRead(A);
if (A >= 0x4090 && A < 0x4093) return FDSSRead(A);
return X.DB;
}
DECLFW(FDSSoundWrite) {
void FDSSoundWrite(uint32 A, uint8 V) {
if (A >= 0x4040 && A < 0x4080) FDSWaveWrite(A, V);
else if (A >= 0x4080 && A < 0x408B) FDSSWrite(A, V);
}

View File

@ -1,12 +1,14 @@
#ifndef FDS_APU_H
#define FDS_APU_H
#include "fceu-types.h"
void FDSSoundReset(void);
void FDSSoundStateAdd(void);
/* Used for fds conversion-based mappers to allow access to fds apu registers */
/* Used for FDS conversion-based mappers to allow access to FDS APU registers */
void FDSSoundPower(void);
DECLFR(FDSSoundRead); /* $4040-$407F, $4090-$4092 */
DECLFW(FDSSoundWrite); /* $4040-$407F, $4080-$408A */
uint8 FDSSoundRead(uint32 A); /* $4040-$407F, $4090-$4092 */
void FDSSoundWrite(uint32 A, uint8 V); /* $4040-$407F, $4080-$408A */
#endif /* FDS_APU_H */
#endif /* FDS_APU_H */