git.y1.nz

gbdk-2020

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

commit 6def65abde949d1c72c45dd1d7274c078e697e2a
parent 703f8ec5309954819e29024b77aabb0df9d86659
Author: Toxa <untoxa@mail.ru>
Date:   Mon,  8 Jun 2026 15:02:30 +0300

MegaDuck: remove redundant clearing of __is_GBA

Diffstat:
Mgbdk-lib/libc/targets/sm83/duck/crt0.s5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gbdk-lib/libc/targets/sm83/duck/crt0.s b/gbdk-lib/libc/targets/sm83/duck/crt0.s @@ -168,15 +168,14 @@ _reset:: CALL .clear_WRAM POP DE -; LD (.mode),A ; Clearing (.mode) is performed when clearing RAM ;; Store CPU type LD A, #.DMG_TYPE ; MEGADUCK is always a DMG LD (__cpu), A XOR A - LD (__is_GBA), A ; and it is never GBA +; LD (__is_GBA), A ; and it is never GBA ; clearing (__is_GBA) is performed when clearing RAM +; LD (.mode),A ; clearing (.mode) is performed when clearing RAM - XOR A ;; Initialize the display LDH (.SCY),A LDH (.SCX),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.