Renesas TM V.3.20A Especificaciones Pagina 57

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 762
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 56
Renesas Technology, Tools FAQs
Last Updated: September 20, 2000
Document Number: 01051234_e
Q.
What kind of declaration should I make in order to assign the array body in a far area and assign the array's reference pointer in a
near area?
A.
For example, to declare a 64-byte short-type array, make the following declaration.
/* (1) declare array body */
short far data[64];
/* (2) declare pointer to array */
short far *pdata;
The pointer in (2) above should be assigned in a near area in the following manner. The destination indicated by the pointer is a far
area.
near |----------|
|- pdata -| <---4 bytes (stores the start address of the array)
|----------|
| |
In addition, you can change the area assigned by the pointer to the array, as well as its destination area, as follows.
short * far pdata
/* (a) pdata in a far area and its pointer destination in a near area
(if far is omitted, it will be treated as near)*/
short far * far pdata
/* (b) pdata in a far area and its pointer destination in a far area */
short far * pdata
/* (c) pdata in a near area and its pointer destination in a far area */
short * pdata
/* (d) pdata in a near area and its pointer destination in a near area */
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Vista de pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 761 762

Comentarios a estos manuales

Sin comentarios