aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-12-23 22:09:06 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-12-23 22:09:06 +0100
commit2e6625481cd006d0a9d68285ce557f195030718e (patch)
tree5a65f290c20cde7a34ceb95fc40f0945ba5968d7 /examples
parent6c7512ff42805e9399dfee8b67e2f70fa55909d3 (diff)
downloadpsn00bsdk-2e6625481cd006d0a9d68285ce557f195030718e.tar.gz
Fix CdGetSector size inconsistency, update changelog
Diffstat (limited to 'examples')
-rw-r--r--examples/cdrom/cdxa/main.c2
-rw-r--r--examples/io/system573/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/cdrom/cdxa/main.c b/examples/cdrom/cdxa/main.c
index 5f11d8d..284b92f 100644
--- a/examples/cdrom/cdxa/main.c
+++ b/examples/cdrom/cdxa/main.c
@@ -199,7 +199,7 @@ void xa_callback(int intr, unsigned char *result)
if (intr == CdlDataReady)
{
/* Fetch data sector */
- CdGetSector((u_long*)&xa_sector_buff, 2048);
+ CdGetSector((u_long*)&xa_sector_buff, 512);
/* Quirk: This CdGetSector() implementation must fetch 2048 bytes */
/* or more otherwise the following sectors will be read in an */
diff --git a/examples/io/system573/main.c b/examples/io/system573/main.c
index 67a98da..95c3155 100644
--- a/examples/io/system573/main.c
+++ b/examples/io/system573/main.c
@@ -306,7 +306,7 @@ int main(int argc, const char* argv[]) {
FntPrint(-1, " P1 BUTTONS =%07@\n", inputs.p1_btn);
FntPrint(-1, " P2 JOYSTICK =%04@\n", inputs.p2_joy);
FntPrint(-1, " P2 BUTTONS =%07@\n", inputs.p2_btn);
- FntPrint(-1, " COIN/SERVICE=%04@\n", inputs.coin);
+ FntPrint(-1, " COIN/SERVICE=%04@\n", inputs.coin & 0xf);
FntPrint(-1, " DIP SWITCHES=%04@\n", inputs.dip_sw);
FntPrint(-1, "\nCABINET LIGHTS:\n");