assembly - Understanding assembler instruction -
i looking below answer at
lpc1768 / arm cortex-m3 microsecond delay
#define cal_factor ( 100 ) void delay (uint32_t interval) { uint32_t iterations = interval / cal_factor; for(int i=0; i<iterations; ++i) { __asm__ volatile // gcc-ish syntax, don't know compiler used ( "nop\n\t" "nop\n\t" ::: ); } }
what \n\t after nop? looked gcc assembler guide not find answer.
i found answer @ http://asm.sourceforge.net/articles/rmiyagi-inline-asm.txt
'\n\t' @ end of each line except last, , each line enclosed in quotes. because gcc sends each instruction string. newline/tab combination required lines fed according correct format (recall each line in assembler indented 1 tab stop, 8 characters).
Comments
Post a Comment