开发者

How you write these lines in Intel syntax?

开发者 https://www.devze.com 2022-12-15 01:15 出处:网络
How do you translate these lines from Linux assembly to Intel assembly? pushlcb_queue pushl%eax popl(%eax)

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

精彩评论

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