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

Subversion Repositories m1_core

[/] [m1_core/] [trunk/] [tests/] [boot/] [boot.s] - Diff between revs 53 and 54

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 53 Rev 54
# Minimal SIMPLE boot code
# Minimal SIMPLE boot code
 
 
        .text
        .text
 
 
        # Global Pointer ($gp) initialization is done by the linker
        # Global Pointer ($gp) initialization is done by the linker
        la $gp, _gp
        la $gp, _gp
 
 
        # Stack Pointer ($sp) initialization makes the program fit into 4 KByte
        # Stack Pointer ($sp) initialization makes the program fit into 4 KByte
        addi $29,$0,0x1000
        addi $29,$0,0x1000
 
 
        # Initialize Return Address ($ra) to jump to the "end-of-test" special address
        # Initialize Return Address ($ra) to jump to the "end-of-test" special address
        lui $31,0xDEAD
        lui $31,0xDEAD
        ori $31,0xBEEF
        ori $31,0xBEEF
 
 
        # Continue to the main test
        # Continue to the main test
 
 

powered by: WebSVN 2.1.0

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