gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 96aa69d11f480fcc8ba0861404e683c813392552 parent eb52910c7f73f7b0bcd3ceb285ae2b4ea23896aa Author: Toxa <untoxa@mail.ru> Date: Mon, 10 Jan 2022 14:40:01 +0300 PSG register masks Diffstat:
| M | gbdk-lib/include/sms/hardware.h | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/include/sms/hardware.h b/gbdk-lib/include/sms/hardware.h @@ -31,7 +31,19 @@ static volatile SFR AT(0x3F) JOY_CTL; #define JOY_P2_LATCH 0b00001000 static volatile SFR AT(0x7E) VCOUNTER; + static volatile SFR AT(0x7F) PSG; + +#define PSGLatch 0x80 +#define PSGData 0x40 + +#define PSGChannel0 0b00000000 +#define PSGChannel1 0b00100000 +#define PSGChannel2 0b01000000 +#define PSGChannel3 0b01100000 + +#define PSGVolumeData 0b00010000 + static volatile SFR AT(0x7F) HCOUNTER; static volatile SFR AT(0xBE) VDP_DATA;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.