scroll out nintendo logo
This commit is contained in:
@@ -23,11 +23,11 @@ Start:
|
||||
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
|
||||
; wait for v-blank
|
||||
halt
|
||||
|
||||
call ScrollNintendoOut
|
||||
|
||||
; disable screen
|
||||
halt
|
||||
xor a
|
||||
ld [rLCDC], a
|
||||
|
||||
|
||||
26
Code/nintendo-out.asm
Normal file
26
Code/nintendo-out.asm
Normal file
@@ -0,0 +1,26 @@
|
||||
INCLUDE "hardware.inc"
|
||||
|
||||
SECTION "NintendoLogo", ROM0
|
||||
|
||||
EXPORT ScrollNintendoOut
|
||||
SECTION "Scroll Nintendo Out", ROM0
|
||||
ScrollNintendoOut:
|
||||
ld b, 30
|
||||
.wait
|
||||
halt
|
||||
xor a
|
||||
ld [rIF], a
|
||||
dec b
|
||||
jr nz, .wait
|
||||
|
||||
.scrollup
|
||||
halt
|
||||
xor a
|
||||
ld [rIF], a
|
||||
ldh a, [rSCY]
|
||||
inc a
|
||||
ldh [rSCY], a
|
||||
cp a, 88
|
||||
jp nz, .scrollup
|
||||
|
||||
ret
|
||||
Reference in New Issue
Block a user