URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 18 |
Rev 106 |
Line 13... |
Line 13... |
.export _bbss
|
.export _bbss
|
|
|
.import bootDisk
|
.import bootDisk
|
.import startSector
|
.import startSector
|
.import numSectors
|
.import numSectors
|
|
.import entryPoint
|
|
|
.code
|
.code
|
_bcode:
|
_bcode:
|
|
|
start:
|
start:
|
Line 38... |
Line 39... |
clrloop:
|
clrloop:
|
stw $0,$8,0
|
stw $0,$8,0
|
add $8,$8,4
|
add $8,$8,4
|
clrtest:
|
clrtest:
|
bltu $8,$9,clrloop
|
bltu $8,$9,clrloop
|
add $29,$0,0xC0100000 ; setup stack
|
add $29,$0,0xC0020000 ; setup stack
|
stw $16,$0,bootDisk ; make arguments available
|
stw $16,$0,bootDisk ; make arguments available
|
stw $17,$0,startSector
|
stw $17,$0,startSector
|
stw $18,$0,numSectors
|
stw $18,$0,numSectors
|
jal main ; call 'main' function
|
jal main ; call 'main' function
|
ldw $16,$0,bootDisk ; setup arguments for next stage
|
ldw $16,$0,bootDisk ; setup arguments for next stage
|
ldw $17,$0,startSector
|
ldw $17,$0,startSector
|
ldw $18,$0,numSectors
|
ldw $18,$0,numSectors
|
add $31,$0,0xC0000000 ; jump to loaded program
|
ldw $31,$0,entryPoint ; jump to loaded program
|
jr $31
|
jr $31
|
|
|
.data
|
.data
|
_bdata:
|
_bdata:
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.