[an error occurred while processing this directive]
Може и в ассемблере, но я в HELP не вижу указания на отступ.(+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

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

Отправлено misyachniy 13 февраля 2003 г. 15:17
В ответ на: Ответ: Скорее всего дело не в самих макросах, как таковых. А дело в ассемблере. отправлено Bill 13 февраля 2003 г. 14:57

In this example, a constant must be supplied as the argument, a more advanced version of the macro might use conditional compilation to access many more I/O devices using different codes but with a standard interface, and allow a variable as an argument. The macro assumes that portadd is already defined, as is bintab.

din MACRO bit_no ;macro to test a bit of the port
BIT.W #(1< ENDM

dset MACRO bit_no ;macro to set a bit of the port
BIS.W #(1<ENDM

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

Ответы



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

E-mail: info@telesys.ru