URL
https://opencores.org/ocsvn/mlite/mlite/trunk
[/] [mlite/] [trunk/] [tools/] [boot.asm] - Diff between revs 200 and 213
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 200 |
Rev 213 |
Line 18... |
Line 18... |
|
|
#These eight instructions should be the first instructions.
|
#These eight instructions should be the first instructions.
|
#convert.exe previously initialized $gp, .sbss_start, .bss_end, $sp
|
#convert.exe previously initialized $gp, .sbss_start, .bss_end, $sp
|
la $gp, _gp #initialize stack pointer
|
la $gp, _gp #initialize stack pointer
|
la $4, __bss_start #$4 = .sbss_start
|
la $4, __bss_start #$4 = .sbss_start
|
la $5, _end #$5 = .bss_end
|
la $2, _end #$2 = .bss_end
|
la $sp, InitStack+488 #initialize stack pointer
|
la $sp, InitStack+488 #initialize stack pointer
|
|
|
$BSS_CLEAR:
|
$BSS_CLEAR:
|
sw $0, 0($4)
|
sw $0, 0($4)
|
slt $3, $4, $5
|
slt $3, $4, $2
|
bnez $3, $BSS_CLEAR
|
bnez $3, $BSS_CLEAR
|
addiu $4, $4, 4
|
addiu $4, $4, 4
|
|
|
jal main
|
jal main
|
nop
|
nop
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.