User`s guide

C for DSP56800E
Large Data Model Support
131Targeting MC56F83xx/DSP5685x Controllers
Table 6.5 lists ways to access a global integer stored at address X:0x1234.
int g1;
Table 6.6 lists ways to load a global pointer variable, at X:0x4567, into an address
register.
int * gp1;
Table 6.5 Accessing a Global Integer
Large Data
Model checkbox
Globals live in
lower memory
checkbox
Instruction Comments
Clear Clear move.w X:0x1234,y0 Default values
Checked Clear move.w
X:0x001234,y0
Clear Checked Combination not
allowed
Checked Checked move.w X:0x1234,y0 Global accesses use 16-
bit addressing
Table 6.6 Loading a Global Pointer Variable
Large Data
Model checkbox
Globals live in
lower memory
checkbox
Instruction Comments
Clear Clear move.w X:0x4567,r0 Default 16-bit addressing,
16-bit pointer value
Checked Clear move.l
X:0x004567,r0
24-bit addressing, pointer
value is 24-bit
Clear Checked Combination not
allowed
Checked Checked move.l X:0x4567,r0 16-bit addressing, pointer
value is 24-bit