git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 077692bcb2cbf282e0bc30a89a7efbfd1a68a5e0
parent 668d753c41ec0bbb01207e8f91c1a1f3d195d885
Author: Toxa <untoxa@mail.ru>
Date:   Wed, 15 Nov 2023 16:15:30 +0300

EXAMPLES: improve testrand example

Diffstat:
Mgbdk-lib/examples/cross-platform/randtest/src/testrand.c12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gbdk-lib/examples/cross-platform/randtest/src/testrand.c b/gbdk-lib/examples/cross-platform/randtest/src/testrand.c @@ -13,14 +13,14 @@ void main(void) { + puts("press A..."); + waitpad(J_A); + initarand(sys_time); while(TRUE) { - puts("press A..."); - waitpad(J_A); - initarand(sys_time); + waitpadup(); for (uint8_t i = 0; i != 16; i++) printf("rand=%hx arand=%hx\n", (uint8_t)rand(), (uint8_t)arand()); + puts("press A..."); + waitpad(J_A); } } - - -

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.