BG0 offset
This commit is contained in:
parent
da55c7c765
commit
03cef4736a
|
@ -1572,6 +1572,9 @@ nop
|
|||
.org 0x8011436 :: ldr r2,[r0,r5]
|
||||
.org 0x8011440 :: ldr r2,[r0,r5]
|
||||
|
||||
// Point to custom initializer routine
|
||||
.org 0x82D6B78 :: dw title_initializer + 1
|
||||
|
||||
// Setup hacks:
|
||||
|
||||
// Fade BG0 instead of OBJ
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
//---------------------------------------------------------
|
||||
title_initializer:
|
||||
push {r1}
|
||||
ldr r0,=0x3001B20
|
||||
mov r1,8 // BG0 X offset
|
||||
strh r1,[r0]
|
||||
ldr r0,=0x30012DC
|
||||
mov r1,8*6 // BG0 Y offset
|
||||
strh r1,[r0]
|
||||
pop {r1}
|
||||
ldr r0,=0x80113F4
|
||||
mov pc,r0 // Run the existing routine
|
||||
|
||||
//---------------------------------------------------------
|
||||
// r3 has 2028008
|
||||
// [r3+14] has 2028028
|
||||
// [2028028+10] has pointer to our palette buffer, 0x200 bytes after which
|
||||
|
|
Loading…
Reference in New Issue