编程语言
首页 > 编程语言> > 两个64位数值的相减(AT&T汇编)

两个64位数值的相减(AT&T汇编)

作者:互联网

  代码如下:

.section .data
data1:
    .quad 7252051615
data2:
    .quad 5732348928
output:
    .asciz "The result is %qd\n"

.section .text
.globl main

main:
    nop
    movl data1, %ebx
    movl data1+4, %eax
    movl data2, %edx
    movl data2+4, %ecx
    subl %ebx, %edx
    sbbl %eax, %ecx

    pushl %ecx
    pushl %edx
    push $output
    call printf
    addl $12, %esp
    pushl $0
    call exit

标签:movl,相减,64,AT&T,edx,ecx,data1,pushl,data2
来源: https://blog.csdn.net/fukangwei_lite/article/details/118976183