|
TIP_SIZE EQU 256
IMPORT ResetMemSet
EXPORT trans_to_boot
trans_to_boot
mov lr, r1 ; a2 = r1
ldr r1, =ResetMemSet
ldr r2, BaseOfROM
sub r2, r1, r2
add r0, r0, r2 ; a1 = r0
mov r2,#TIP_SIZE
0
ldr r3, [r1], #4
str r3, [r0], #4
subs r2, r2,#1
bne %B0
sub r0, r0, #TIP_SIZE*4
mov pc,r0
在C程序中有这个引用trans_to_boot(BIOS_BASE, BIOS_LOAD);
有人可以分析一下上面的程序吗,谢谢 |
|