[an error occurred while processing this directive]
Help -> RTFM C Compiler Programming Help -> #pragma directive reference -> codeseg
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено Yuriy 30 января 2003 г. 19:14
В ответ на: Спасибо, но это я и так знаю - это ссылка на подпрограмму, а мне надо типа BIOS- отправлено disp 30 января 2003 г. 19:00

codeseg

Directs subsequent function definitions to the specified segment..

Syntax

#pragma codeseg(seg_name)

Description

By default functions are directed to the segment CODE. The command #pragma codeseg(RCODE) can be used to direct code to the RCODE segment.
Note that all functions in the same C source file must be in the same segment.

Examples

This example declares an interrupt routine to be stored in the RCODE segment. The #pragma function=interrupt ensures that appropriate code will be produced; see function=interrupt, for details.

#pragma codeseg(RCODE)
#pragma function=interrupt
void process_int()
{
...
}

#pragma function=default


После чего в *.xcl определяешь сегмент в нужном месте

-Z(CODE)RCODE=2000-20FF

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru