[SOLVED] "mnemonic expected" error

Status
Not open for further replies.

bluerose

Newbie level 3
Joined
Feb 26, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,308
hello
I have this error due to my assembly debugging in keil uvision4 for infineon c167cs device:


main.c(15): error C195: inline-asm: Mnemonic expected


does anyone know what it is about??
 

Without your code, I'd guess it's a syntax error; maybe missing a semicolon on an earlier line; something like that.
 

If you are doing inline asm coding in your c/c++/pascal code then you have to put the asm code inside the inline asm block something like

Code C - [expand]
1
2
3
4
5
6
7
8
9
asm{
 
}
 
or
 
_asm{
 
}


It is different for different compilers. See help of your compiler about inline asm.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…