LinuxÒÁµéÔ°ÂÛ̳'s Archiver

LLLL_12342000 ·¢±íÓÚ 2008-1-3 10:46

¸ßÊÖ°ïÎÒ¿´¿´±àÒë´íÎó£¬ÎÒʵÔÚÕÒ²»µ½ÊÇÔõô»ØÊ£¡£¡

Ô´´úÂëÈçÏ£º
S|s!Ee^                .file "max,s"5x#gR\ SLc
.section        .textw%g]YR+Fv2W
        .type max,@function
*F"g#Kt'A5E? .globl max3S:YLfl"x
max:
+i4MO.n8d         pushl %ebp1`3HY2@zn
        movl %esp,%ebp/[1c\3J&UwCf
        subl $8,%esp
1Du `k } i {S4J`(O5e6A         movl 8(%esp),%eax\y#e7GF c0Yj S1` g
        movl %eax,-4(%esp)
n2D-I1ma3d]i:F T Z         movl 12(%esp),%eax
0}:dNi(lTf;c'X1b$^         movl %eax,-8(%esp)sh)w)A&AIDO^
        cmpl %eax,-4(%esp)}v(f%G!r_G}
        cmovge movl -4(%esp),%eax
x!i}n7w8N{f         leave
+C`&w tx2ahI         ret
'T+En[m#Y v         %w!SM5?L1IZ
.section        .textb1k Wa&@2It-is
.globl _startc C(b u#P?#o%a
_start:
7{NaPU#]T%HQLe         pushl $0x4iFA J/onA
        pushl $0x8
5OM!lgP!V&z         call max
.n7v*^h-[}&z         addl $8,%espQi4XecM
        movl %eax,%ebx7a4S!dRS[+Z
        movl $1,%eax#MG-A j0~Q
        int $0x80r|yJ8[+p9?
´íÎóÐÅÏ¢£º
zV$D``&w3t as -o max,o max.s
d-Qj.}br'}3B max.s: Assembler messages:
'NSvH T max.s:5: Error: suffix or operands invalid for `push'
^'Y?1ky8H(l max.s:20: Error: suffix or operands invalid for `push'
CZR4d0ii H5k max.s:21: Error: suffix or operands invalid for `push'M O|#y2PA
¶Ôpush µÄʹÓÃÄÄÀï´íÁ˰¡£¿

LLLL_12342000 ·¢±íÓÚ 2008-1-3 10:50

²»ºÃÒâ˼£¬ÎÒÕÒµ½ÁË¡£ÎÒʹÓõÄϵͳΪX86£ß64
N;be9OEB8o ÔÚ±àÒëµÄʱºò¼ÓÉÏÑ¡Ï£­32¾Í¿ÉÒÔÁËvER F)c
¼´
8eYB|_@#K _(m as --32 -o max.o max.s

dearvoid ·¢±íÓÚ 2008-1-3 19:43

good :)

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.