If you have time please help me find a functional asm routine that calls a tilescreen,i found a callback but i don't think that it's good:
.text
.global callback
.thumb
.thumb_func
.align 2
main:
push {r0-r7, lr}
bl main_func
bl call_back3
bl sub_080704D0
pop {r0-r7, pc}
call_back3:
ldr r4, callback3_address
bx r4
sub_080704D0:
ldr r4, loc_080704D0
bx r4
main_func:
push {lr}
bl increment_timer
bl getcurrentfunc
increment_timer:
ldr r0, vram
ldrh r0, [r0]
ldr r1, vram
add r0, #0x1
strh r0, [r1]
bx lr
returnmain:
pop {pc}
getcurrentfunc:
b titlescreen
bx lr
titlescreen:
bl goto_titlescreen
pop {r0-r7,pc}
goto_titlescreen:
push {lr}
ldr r0, sub_0800CC7A
bx r0
.align 2
callback3_address: .word 0x08077578+1
loc_080704D0: .word 0x080704D0+1
sub_0800CC7A: .word 0x0800CC7A+1
༼ つ ◕_◕ ༽つ