Listing 2-2. Initialization Block Code Example for Multiple .DXE Boot
#include <defBF532.h>
.SECTION program;
/*******Pre-Init Section***************************************/
[--SP] = ASTAT;
[--SP] = RETS;
[--SP] = (r7:0);
[--SP] = (p5:0);
[--SP] = I0;[--SP] = I1;[--SP] = I2;[--SP] = I3;
[--SP] = B0;[--SP] = B1;[--SP] = B2;[--SP] = B3;
[-
-SP] = M0;[--SP] = M1;[--SP] = M2;[--SP] = M3;
[
--SP] = L0;[--SP] = L1;[--SP] = L2;[--SP] = L3;
/**************************************************************/
/*******Init Code Section**************************************
R0.H = High Address of DXE Location (R0 for Flash/Prom Boot,
R0.L = Low Address of DXE Location. (R0 for Flash/Prom Boot,
***************************************************************/
/*******Post-Init Section**************************************/
L3 = [SP++]; L2 = [SP++]; L1 = [SP++]; L0 = [SP++];
M3 = [SP++]; M2 = [SP++]; M1 = [SP++]; M0 = [SP++];
B3 = [SP++]; B2 = [SP++]; B1 = [SP++]; B0 = [SP++];
I3 = [SP++]; I2 = [SP++]; I1 = [SP++]; I0 = [SP++];
(p5:0) = [SP++];
/* MAKE SURE NOT TO RESTORE
R0 for Flash/Prom Boot, R3 for SPI Boot */
(r7:0) = [SP++];
RETS = [SP++];
ASTAT = [SP++];
/**************************************************************/
RTS;
VisualDSP++ Loader Manual
for 16-Bit Processors
Blackfin Processor Loader/Splitter
R3 for SPI boot)
R3 for SPI boot)
2-39
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?
Questions and answers