diff options
author | Astatin <[email protected]> | 2025-06-28 20:51:44 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-06-28 20:51:44 +0200 |
commit | 00c5b36a37d9b7e8b7009b3a176397e5ce808cbd (patch) | |
tree | 12c0568564b57b579862cbfb75f4f8a4ccc89c2a | |
parent | 045a159fa53b61dd79dff405158f66f952322a9d (diff) |
Add ~3s wait before astatin logo disappear
-rw-r--r-- | assets/Astatin-bootrom.gbasm | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/assets/Astatin-bootrom.gbasm b/assets/Astatin-bootrom.gbasm index e1ed375..b65660e 100644 --- a/assets/Astatin-bootrom.gbasm +++ b/assets/Astatin-bootrom.gbasm @@ -94,6 +94,7 @@ LD ($24), A LD C, $58 Loop: LD B, $12 + .Wait_VBlank: LD A, ($44) CP $90 @@ -104,18 +105,25 @@ Loop: JR NZ, =.Wait_VBlank LD A, C - LD ($42), A DEC C + + CP $c0 + JR Z, =End + JR NC, =Loop + + CP $04 + JR C, =Loop + + LD ($42), A + + LD D, $c1 + CALL Z, =.sound1 + CP $06 LD D, $83 CALL Z, =.sound1 - CP $04 - JR NZ, =Loop - LD D, $c1 - CALL =.sound1 - .Lock: - JP =End + JR =Loop .sound1: LD E, A @@ -126,7 +134,6 @@ Loop: LD A, E RET - Logo: .DB $3f, $ff, $f0, $f0 .DB $c0, $f0, $f0, $f0 |