URL
https://opencores.org/ocsvn/mips789/mips789/trunk
[/] [mips789/] [tags/] [arelease/] [bench/] [plasmaboot.asm] - Diff between revs 36 and 51
Only display areas with differences |
Details |
Blame |
View Log
Rev 36 |
Rev 51 |
##################################################################
|
##################################################################
|
# TITLE: Boot Up Code
|
# TITLE: Boot Up Code
|
# AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
|
# AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
|
# DATE CREATED: 1/12/02
|
# DATE CREATED: 1/12/02
|
# FILENAME: boot.asm
|
# FILENAME: boot.asm
|
# PROJECT: Plasma CPU core
|
# PROJECT: Plasma CPU core
|
# COPYRIGHT: Software placed into the public domain by the author.
|
# COPYRIGHT: Software placed into the public domain by the author.
|
# Software 'as is' without warranty. Author liable for nothing.
|
# Software 'as is' without warranty. Author liable for nothing.
|
# DESCRIPTION:
|
# DESCRIPTION:
|
# Initializes the stack pointer and jumps to main2().
|
# Initializes the stack pointer and jumps to main2().
|
##################################################################
|
##################################################################
|
.text
|
.text
|
.align 2
|
.align 2
|
.globl entry
|
.globl entry
|
.ent entry
|
.ent entry
|
entry:
|
entry:
|
.set noreorder
|
.set noreorder
|
|
|
#These eight instructions must be the first instructions.
|
#These eight instructions must be the first instructions.
|
#convert.exe will correctly initialize $gp
|
#convert.exe will correctly initialize $gp
|
lui $gp,0
|
lui $gp,0
|
ori $gp,$gp,0
|
ori $gp,$gp,0
|
#convert.exe will set $4=.sbss_start $5=.bss_end
|
#convert.exe will set $4=.sbss_start $5=.bss_end
|
lui $4,0
|
lui $4,0
|
ori $4,$4,0
|
ori $4,$4,0
|
lui $5,0
|
lui $5,0
|
ori $5,$5,0
|
ori $5,$5,0
|
lui $sp,0
|
lui $sp,0
|
ori $sp,$sp,0xfff0 #initialize stack pointer
|
ori $sp,$sp,0xfff0 #initialize stack pointer
|
$BSS_CLEAR:
|
$BSS_CLEAR:
|
sw $0,0($4)
|
sw $0,0($4)
|
slt $3,$4,$5
|
slt $3,$4,$5
|
bnez $3,$BSS_CLEAR
|
bnez $3,$BSS_CLEAR
|
addiu $4,$4,4
|
addiu $4,$4,4
|
|
|
jal main2
|
jal main2
|
nop
|
nop
|
$L1:
|
$L1:
|
j $L1
|
j $L1
|
|
|
.set reorder
|
.set reorder
|
.end entry
|
.end entry
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.