calling assembly functions from c

后端 未结 4 2045
不思量自难忘°
不思量自难忘° 2021-02-02 09:47

I\'m trying to use a function in assembly, invoked from a C project. This function is supposed to call a libc function let\'s say printf(), but I keep getting a se

4条回答
  •  野的像风
    2021-02-02 10:20

    the issue was that i was using

    pushl printtext
    

    rather that

    pushl $printtext
    

    Thanks everybody for your help and sorry for wasting your time :P

提交回复
热议问题