Inline function __asm

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Inline function __asm

663件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bojana.djukic on Tue Jul 29 03:20:04 MST 2014
I want from my C code to read value of PC, an for that I want write inline __asm function. I wrote this
          int Get_Add(void)
                 {
                      int Add;
                      __asm { mov Add, PC}
                       return Adresa;
                 }

But I got error message "Glavni.c(22): error:  #20: identifier "PC" is undefined"
Could anybody help me, do I need to include some library?
ラベル(1)
0 件の賞賛
返信
0 返答(返信)