git.y1.nz

gbdk-2020

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

commit e0c90a2bcc84fdd2e017974ed039f5443a0aab7f
parent b3d9a60cbe1e615baca6fe768d63af7e0bc5b25c
Author: Toxa <untoxa@mail.ru>
Date:   Tue, 25 Jan 2022 01:11:20 +0300

add public ___rand_seed symbol for saving/restoring of RNG state

Diffstat:
Mgbdk-lib/libc/asm/gbz80/rand.s5+++--
Mgbdk-lib/libc/asm/z80/rand.s1+
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gbdk-lib/libc/asm/gbz80/rand.s b/gbdk-lib/libc/asm/gbz80/rand.s @@ -37,9 +37,10 @@ ;; GameBoy, this is a safe bet! .area _DATA -.randhi:: ; Storage for last random number (or seed) +___rand_seed:: +.randlo: ; Storage for last random number (or seed) .ds 0x01 -.randlo:: +.randhi: .ds 0x01 .area _HOME diff --git a/gbdk-lib/libc/asm/z80/rand.s b/gbdk-lib/libc/asm/z80/rand.s @@ -2,6 +2,7 @@ .area _DATA +___rand_seed:: .randval: .ds 0x02

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