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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [tools/] [opcodes.asm] - Diff between revs 194 and 200

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 194 Rev 200
Line 18... Line 18...
        .globl  entry
        .globl  entry
        .ent    entry
        .ent    entry
entry:
entry:
   .set noreorder
   .set noreorder
 
 
   #These four instructions must be the first instructions
   la    $gp, _gp           #initialize stack pointer
   #convert.exe will correctly initialize $gp
   la    $4, __bss_start    #$4 = .sbss_start
   lui   $gp,0
   la    $5, _end           #$5 = .bss_end
   ori   $gp,$gp,0
   nop                      #no stack needed
   #convert.exe will set $4=.sbss_start $5=.bss_end
   nop
   lui   $4,0
 
   ori   $4,$4,0
 
   lui   $5,0
 
   ori   $5,$5,0
 
   lui   $sp,0
 
   ori   $sp,$sp,0xfff0
 
 
 
   b     StartTest
   b     StartTest
   nop                      #nops required to place ISR at 0x3c
   nop                      #nops required to place ISR at 0x3c
   nop
   nop
 
 

powered by: WebSVN 2.1.0

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