[an error occurred while processing this directive] [an error occurred while processing this directive]
Ответ:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Михаил Е. 18 ноября 2001 г. 21:21
В ответ на: Ответ: отправлено Vallav 18 ноября 2001 г. 17:02

По именам обращаться можно из других функций на СИ, с ассемблером я такого механизма не знаю. Я имел ввиду вызов ассемблерной функции с передачей параметров. Если передачи параметров не будет, то для ассемблерной функции действительно локальных переменных может не существовать.

This is summarized in the following table:

Parameters* Parameter 1 Parameter 2

f(b1,b2,...) R16 R20
f(b1,w2,...) R16 R20, R21
f(w1,l1,...) R16, R17 R20, R21, R22, R23
f(l1,b2,...) R16, R17, R18, R19 R20

f(l1,l2,...) R16, R17, R18, R19 R20, R21, R22, R23

* Where b denotes an 8-bit data type, w denotes a 16-bit data type, and l denotes a 22-32 bit data type.
8 bit return values are passed in register R16. 16-bit return values are passed in R16, R17, and 22-32 bit data types are passed in R16-R19.

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

Ответы



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

E-mail: info@telesys.ru