标题:为什么没有换行
取消只看楼主
八画小子
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:37
帖 子:705
专家分:2043
注 册:2010-11-11
结帖率:96.55%
已结贴  问题点数:20 回复次数:0 
为什么没有换行
程序代码:
.section    .data
output:
    .asciz    "The processor Vendor ID is \"%s\"\n"

.section    .bss
    .lcomm    buffer,12

.section    .text
.global        _start
_start:
    movq    $0,%rax
    cpuid

    movq    $buffer,%rdi
    movq    %rbx,(%rdi)
    movq    %rdx,4(%rdi)
    movq    %rcx,8(%rdi)

    pushq    $buffer
    pushq    $output
    call    printf
    addq    $8,%rsp

    pushq    $0
    call    exit


如上代码,为什么运行结果没有换行?这个是AT&T的代码
搜索更多相关主题的帖子: start 
2014-11-21 18:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-438971-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.247808 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved