MIPS 汇编语句,哪位大侠给我讲解一下(尤其是里面的数字不理解)
/*
* Calculate final location of CFE. MEMTOP is our
* top-of-memory address.
*/
la v0,_ftext
la v1,_end
sub v0,v1,v0 # v0 = size of text+init+bss
add v0,v0,(CFG_HEAP_SIZE*1024)+STACK_SIZE
add v0,v0,0xFFF
and v0,~0xFFF # round down to 4K byte boundary
subu TEXTBASE,MEMTOP,v0 # Start at this physical location
#if CFG_RUNFROMKSEG0
or TEXTBASE,K0BASE
#else
or TEXTBASE,K1BASE
#endif
/*
* TEXTBASE = desired target address
*/
/*
* Copy the code and data
*/
la v0,_ftext
la v1,_image_end
move s0,TEXTBASE
# li s0,IMAGE_TARGET
1: lw t0,0(v0)
lw t1,4(v0)
lw t2,8(v0)
lw t3,12(v0)
lw t4,16(v0)
lw t5,20(v0)
lw t6,24(v0)
lw t7,28(v0)
sw t0,0(s0)
sw t1,4(s0)
sw t2,8(s0)
sw t3,12(s0)
sw t4,16(s0)
sw t5,20(s0)
sw t6,24(s0)
sw t7,28(s0)
addu v0,32
addu s0,32
blt v0,v1,1b
__DoRelocs:
move RELOCOFFSET,TEXTBASE
la v0,_ftext
subu RELOCOFFSET,v0