OpenCores
URL https://opencores.org/ocsvn/mips789/mips789/trunk

Subversion Repositories mips789

[/] [mips789/] [branches/] [avendor/] [bench/] [plasmaboot.asm] - Blame information for rev 51

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 mcupro
##################################################################
2
# TITLE: Boot Up Code
3
# AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
4
# DATE CREATED: 1/12/02
5
# FILENAME: boot.asm
6
# PROJECT: Plasma CPU core
7
# COPYRIGHT: Software placed into the public domain by the author.
8
#    Software 'as is' without warranty.  Author liable for nothing.
9
# DESCRIPTION:
10
#    Initializes the stack pointer and jumps to main2().
11
##################################################################
12
        .text
13
        .align  2
14
        .globl  entry
15
        .ent    entry
16
entry:
17
   .set noreorder
18
 
19
   #These eight instructions must be the first instructions.
20
   #convert.exe will correctly initialize $gp
21
   lui   $gp,0
22
   ori   $gp,$gp,0
23
   #convert.exe will set $4=.sbss_start $5=.bss_end
24
   lui   $4,0
25
   ori   $4,$4,0
26
   lui   $5,0
27
   ori   $5,$5,0
28
   lui   $sp,0
29
   ori   $sp,$sp,0xfff0     #initialize stack pointer
30
$BSS_CLEAR:
31
   sw    $0,0($4)
32
   slt   $3,$4,$5
33
   bnez  $3,$BSS_CLEAR
34
   addiu $4,$4,4
35
 
36
   jal   main2
37
   nop
38
$L1:
39
   j $L1
40
 
41
   .set reorder
42
        .end    entry

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.