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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -