高手帮我看看编译错误,我实在找不到是怎么回事!!
源代码如下:
.lr6rBM#O .file "max,s"Q+tM+}s
.section .text
1r3dj3Ab8NIU .type max,@function
X9XOS }4FXb;e.globl maxLinux伊甸园论坛G/py{/}]p d
max:
fs7`H@P;e
pushl %ebp
o
|P T7C!_
L YM movl %esp,%ebp
$S`5L9GB"TF0a.w*YK subl $8,%espJ ^4z2GH2s"p?^
movl 8(%esp),%eax
$I:qn3?,cC`[ movl %eax,-4(%esp)
/J@No!A&?%`www.linuxeden.com movl 12(%esp),%eax
:]TSl:JV+Iq`M movl %eax,-8(%esp)MYQy!MWYy
}(E
o(E
cmpl %eax,-4(%esp)Linux伊甸园论坛
pi#}
n-@5G
cmovge movl -4(%esp),%eaxr~.f0NS0R+n
leave
U
p9L6^Y7G4c
s8sv retLinux伊甸园论坛}7FPO7F!A_X
Linux伊甸园论坛-? M|+m
m4v
tWm't
.section .textLinux伊甸园论坛d.eu9a'xoe8N,Q
.globl _start
t&t%Wgu.`'q9N_start:www.linuxeden.com]s'Mf%R;}1H,c0^I
pushl $0x4www.linuxeden.comK+[|&Sx@8q
pushl $0x8
r[s+n `
x/^ call max
mQ~6]0{8} t5iZ addl $8,%esp?B+R k5h6[!L
movl %eax,%ebx
fP;o|4Xiwww.linuxeden.com movl $1,%eax/?]VpW"w Y
int $0x80www.linuxeden.com(u/Qn1e,L.T1V@E)@Sy
错误信息::Y/r
X3UI.jQ
as -o max,o max.s
Z#p BT'P7F'jmax.s: Assembler messages:
Z:tC
A8w'o5o(@5G+Fmax.s:5: Error: suffix or operands invalid for `push'
3fU*e n~ j.NFLs'y&bs }max.s:20: Error: suffix or operands invalid for `push'QCkh$U@M t
max.s:21: Error: suffix or operands invalid for `push'
pE#~*BFi)c对push 的使用哪里错了啊?
|