|
Using Inline Asm
Inline asm is really just the same as regular assembler syntax, except that it is enclosed in the pseudo-function asm(). In a C file, the above assembly code becomes the following:
asm(".area memory(abs)\n"
".org 0x1000\n"
"_LCD_control_register:: .blkw 1\n"
"_LCD_data_register:: .blkw 1");
asm(".org 0x2000\n"
"_dual_port_SRAM:: .blkb 100");
и т.д.
E-mail: info@telesys.ru