开发者

How you write these lines in Intel syntax?

How do you translate these lines from Linux assembly to Intel assembly?

pushl   cb_queue
pushl   %eax
popl    (%eax)

jg  .FOR_end0
.FOR_end0:

sete    (%esp)

pushl   $.rte_isqrt
.rte_isqrt:
.st开发者_开发问答ring "isqrt returns no value"


Running intel2gas -g (the switch reverses the direction of translation) produces:

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'

(It's normally called AT&T syntax, not Linux assembly.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜