URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [hello-uart/] [reset.S] - Diff between revs 1223 and 1765
Only display areas with differences |
Details |
Blame |
View Log
Rev 1223 |
Rev 1765 |
#include "board.h"
|
#include "board.h"
|
#include "mc.h"
|
#include "mc.h"
|
|
|
.global ___main
|
.global ___main
|
.section .stack, "aw", @nobits
|
.section .stack, "aw", @nobits
|
.space STACK_SIZE
|
.space STACK_SIZE
|
_stack:
|
_stack:
|
|
|
.section .vectors, "ax"
|
.section .vectors, "ax"
|
.org 0x100
|
.org 0x100
|
_reset:
|
_reset:
|
l.movhi r1,hi(_stack-4)
|
l.movhi r1,hi(_stack-4)
|
l.ori r1,r1,lo(_stack-4)
|
l.ori r1,r1,lo(_stack-4)
|
l.addi r2,r0,-3
|
l.addi r2,r0,-3
|
l.and r1,r1,r2
|
l.and r1,r1,r2
|
|
|
l.movhi r2,hi(_main)
|
l.movhi r2,hi(_main)
|
l.ori r2,r2,lo(_main)
|
l.ori r2,r2,lo(_main)
|
l.jr r2
|
l.jr r2
|
l.addi r2,r0,0
|
l.addi r2,r0,0
|
|
|
___main:
|
___main:
|
l.jr r9
|
l.jr r9
|
l.nop
|
l.nop
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.