[hatari-devel] [PATCH] Fixed Microwire registers debugger view. |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, I have noticed a silly mistake in src/dmasnd.c where both Microwire registers are listed as byte instead of word. I have attached a patch that should correct this very trivial problem. Thank you for all the work. G-B aka Ben/OVR -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBzBAEBCAAGBQJh5IlBACEJELS+qvECjB6CFiEEUftm+bphVfZEqzmmtL6q 8QKMHoLmZQf+I1yLC4SfhkZ5DL2OzQeHPHOknwDHuWp6b9zU2dDdXLNjoWvO Z1BONsuMGGl3FpLldlbxL9H6aoLT7gihoEatxWiWFeJssO1wEN3eG11Bft4U FNKm0OMo1o7OQh4zqe5mCmC/x6S4h9D8AKAMNpzG0zAh7C9w3UeEwbCfMFuy kdaMpbdNYy3qLTU+F7NPWZL2PBTrRWzbeEHJ/HINRp7f7bcFq+skudKWT+iY H0XttMhwaifK+CKtWcncxKZkcVNbAPL8RXdH4eHmWq8f7riQDkC0r2c01r/J Y81fxJGesZKdfoH6uvg4PPnW122SBtn1O/pqs8KJwuBVDtHmOXW6lQ== =bvGv -----END PGP SIGNATURE-----
diff --git a/src/dmaSnd.c b/src/dmaSnd.c index 33a40188..0e51ae8e 100644 --- a/src/dmaSnd.c +++ b/src/dmaSnd.c @@ -34,8 +34,8 @@ $FF8911 (byte) : Frame End Mi $FF8913 (byte) : Frame End Lo $FF8920 (word) : Sound Mode Control (frequency, mono/stereo) - $FF8922 (byte) : Microwire Data Register - $FF8924 (byte) : Microwire Mask Register + $FF8922 (word) : Microwire Data Register + $FF8924 (word) : Microwire Mask Register The Microwire and LMC 1992 commands : @@ -1482,6 +1482,6 @@ void DmaSnd_Info(FILE *fp, Uint32 dummy) return; } fprintf(fp, "\n"); - fprintf(fp, "$FF8922.b : Microwire Data : %02x\n", IoMem_ReadByte(0xff8922)); - fprintf(fp, "$FF8922.b : Microwire Mask : %02x\n", IoMem_ReadByte(0xff8924)); + fprintf(fp, "$FF8922.w : Microwire Data : %02x\n", IoMem_ReadWord(0xff8922)); + fprintf(fp, "$FF8924.w : Microwire Mask : %02x\n", IoMem_ReadWord(0xff8924)); }
Attachment:
0001-Fixed-Microwire-registers-debugger-view.patch.sig
Description: PGP signature
Attachment:
publickey - benjihan@protonmail.com - 0x51FB66F9.asc
Description: application/pgp-keys
Attachment:
publickey - benjihan@protonmail.com - 0x51FB66F9.asc.sig
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |