gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 4acad8b1f61a71f23f5e75a351d3b2b3a24ac525 parent 8f81ff73c61144f0536602fb3f55b1bbe5a3d33e Author: Toxa <untoxa@mail.ru> Date: Mon, 18 Jul 2022 15:44:11 +0300 GB Examples: remove duplicate file from the wav_sample example Diffstat:
| D | gbdk-lib/examples/gb/wav_sample/src/main.c | 38 | -------------------------------------- |
1 file changed, 0 insertions(+), 38 deletions(-)
diff --git a/gbdk-lib/examples/gb/wav_sample/src/main.c b/gbdk-lib/examples/gb/wav_sample/src/main.c @@ -1,38 +0,0 @@ -#include <gb/gb.h> -#include <stdio.h> - -#include "sample_player.h" - -#include "samples_bank2.h" -#include "samples_bank3.h" - - -void main() -{ - - NR52_REG = 0x80u; - NR51_REG = 0xffu; - NR50_REG = 0x77u; - - __critical { - TMA_REG = 0xC0u, TAC_REG = 0x07u; - add_TIM(play_isr); - set_interrupts(VBL_IFLAG | TIM_IFLAG); - } - - puts("PRESS A/B TO PLAY\n"); - - while(1) - { - UINT8 j = joypad(); - if (j & J_A) { - play_sample1(); - while (joypad() & J_A) wait_vbl_done(); - } else - if (j & J_B) { - play_sample2(); - while (joypad() & J_B) wait_vbl_done(); - } - wait_vbl_done(); - } -}
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.