gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 4e65864e94cf68d0ae0800fb88ce5eb50665cc66 parent 89641b0f05778cb640171286ce5c5205115fe56c Author: Toxa <untoxa@mail.ru> Date: Mon, 26 Jul 2021 14:21:46 +0300 using of LCDC constants in galaxy.c example Diffstat:
| M | gbdk-lib/examples/gb/galaxy/galaxy.c | 2 | +- |
| M | gbdk-lib/include/gb/hardware.h | 4 | ++-- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gbdk-lib/examples/gb/galaxy/galaxy.c b/gbdk-lib/examples/gb/galaxy/galaxy.c @@ -504,7 +504,7 @@ void main() disable_interrupts(); DISPLAY_OFF; - LCDC_REG = 0x67; + LCDC_REG = LCDCF_OFF | LCDCF_WIN9C00 | LCDCF_WINON | LCDCF_BG8800 | LCDCF_BG9800 | LCDCF_OBJ16 | LCDCF_OBJON | LCDCF_BGON; /* * LCD = Off * WindowBank = 0x9C00 diff --git a/gbdk-lib/include/gb/hardware.h b/gbdk-lib/include/gb/hardware.h @@ -124,8 +124,8 @@ __REG NR44_REG; /** Sound Channel 4 Counter / Consecutive and Inital */ __REG NR50_REG; /** Sound Channel control / ON-OFF / Volume */ #define rAUDVOL NR50_REG -#define AUDVOL_VOL_LEFT(x) ((x) << 4) -#define AUDVOL_VOL_RIGHT(x) ((x)) +#define AUDVOL_VOL_LEFT(x) ((x) << 4) +#define AUDVOL_VOL_RIGHT(x) ((x)) #define AUDVOL_VIN_LEFT 0b10000000 #define AUDVOL_VIN_RIGHT 0b00001000
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.