Overlays Used With ADSP-218x DSPs
This example details the handling of overlay pages for ADSP-218x DSPs.
The following file (
(ADSP-2189M ASM HardWare Overlay) shipped with VisualDSP++.
.section/pm
.global
.extern
.extern
.extern
,extern
// Beginning of main program
START:
mstat = 0x10;
dmovlay = 1;
ax0 = dm(ONE);
dmovlay = 2;
ay0 = dm(TWO);
pmovlay = 4;
call ADD;
ax0 = dm(RESULT);// read value of memory mapped variable
ay0 = dm(THREE); // read value of memory mapped variable
pmovlay = 0;
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
LDF Programming Examples for ADSP-21xx DSPs
) is part of an example program
main.asm
program;
START;
ADD, SUB, MULT;
// reside in external PM overlay regions
ONE, TWO;
// external DM variables which reside
// in external DM overlay regions
FOUR, FIVE;
// external DM variables which
// reside in external DM overlay regions
THREE, RESULT;
// reside in non-overlay/fixed-memory DM region
// configure core for integer mode
// jump to external DM overlay region #1
// read value of memory mapped variable
// that lives in external DM
// overlay region #1 into ax0
// jump to external DM overlay region #2
// read value of memory mapped variable
// that lives in external DM
// overlay region #2 into ay0
// jump to PM overlay region #4
// Call the ADD function which lives
// in external PM overlay
// that lives in internal non-overlay
// DM memory region into ax0
// that lives in internal non-overlay
// DM memory region into ay0
// jump to internal PM overlay region #0
// external PM modules which
// external DM variables which
#4
D-23
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?