Самый лучший способ - это прочитать документацию :)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

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

Отправлено _IgorM_ 05 декабря 2004 г. 12:49
В ответ на: Тишина - Тогда вопрос по существу: Мне надо на Hi-Teсh C написать программу в которой часть кода написана на C и часть на ассемблере (+) отправлено изучающий СИ 05 декабря 2004 г. 10:51

для 8.01PL3 смотри manual.pdf страница 156, раздел "5.25 Mixing C and Assembler Code"

The name of the assembly language function is the name declared in C, with an underscore prepended. The GLOBAL pseudo-op is the assembler equivalent to the C extern keyword and the SIGNAT pseudo-op is used to enforce link time calling convention checking. Signature checking and the SIGNAT pseudo-op are discussed in more detail later in this chapter. Note that in order for assembly language functions to work properly they must look in the right place for any arguments passed and must correctly set up any return values. Local variable allocation (via the FNSIZE directive), argument and return value passing mechanisms are discussed in detail later in the
manual and should be understood before attempting to write assembly language routines.

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

Ответы



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

E-mail: info@telesys.ru