如何用英特尔语法编写这些行?

时间:2010-01-01 13:30:13

标签: assembly

如何将这些行从Linux程序集转换为英特尔程序集?

pushl   cb_queue
pushl   %eax
popl    (%eax)

jg  .FOR_end0
.FOR_end0:

sete    (%esp)

pushl   $.rte_isqrt
.rte_isqrt:
.string "isqrt returns no value"

1 个答案:

答案 0 :(得分:1)

运行intel2gas -g(开关反转翻译方向)会产生:

push    dword [cb_queue]
push    eax
pop     dword [eax]

jg  .FOR_end0
.FOR_end0: 

sete    [esp]

push    dword .rte_isqrt
.rte_isqrt: 
db      'isqrt returns no value'

(通常称为AT& T语法,而不是Linux程序集。)