int print(const char* fmt, ...) { 8048394: 55 push %ebp 8048395: 89 e5 mov %esp,%ebp 8048397: 83 ec 28 sub $0x28,%esp int n1 = 0; 804839a: c7 45 fc 00 00 00 00 movl $0x0,0xfffffffc(%ebp) int n2 = 0; 80483a1: c7 45 f8 00 00 00 00 movl $0x0,0xfffffff8(%ebp) int n3 = 0; 80483a8: c7 45 f4 00 00 00 00 movl $0x0,0xfffffff4(%ebp) va_list ap; va_start(ap, fmt); 80483af: 8d 45 0c lea 0xc(%ebp),%eax 80483b2: 89 45 f0 mov %eax,0xfffffff0(%ebp) n1 = va_arg(ap, int); 80483b5: 8b 55 f0 mov 0xfffffff0(%ebp),%edx 80483b8: 8d 45 f0 lea 0xfffffff0(%ebp),%eax 80483bb: 83 00 04 addl $0x4,(%eax) 80483be: 8b 02 mov (%edx),%eax 80483c0: 89 45 fc mov %eax,0xfffffffc(%ebp) n2 = va_arg(ap, int); 80483c3: 8b 55 f0 mov 0xfffffff0(%ebp),%edx 80483c6: 8d 45 f0 lea 0xfffffff0(%ebp),%eax 80483c9: 83 00 04 addl $0x4,(%eax) 80483cc: 8b 02 mov (%edx),%eax 80483ce: 89 45 f8 mov %eax,0xfffffff8(%ebp) n3 = va_arg(ap, int); 80483d1: 8b 55 f0 mov 0xfffffff0(%ebp),%edx 80483d4: 8d 45 f0 lea 0xfffffff0(%ebp),%eax 80483d7: 83 00 04 addl $0x4,(%eax) 80483da: 8b 02 mov (%edx),%eax 80483dc: 89 45 f4 mov %eax,0xfffffff4(%ebp) va_end(ap); printf("n1=%d n2=%d n3=%d/n", n1, n2, n3); 80483df: 8b 45 f4 mov 0xfffffff4(%ebp),%eax 80483e2: 89 44 24 0c mov %eax,0xc(%esp) 80483e6: 8b 45 f8 mov 0xfffffff8(%ebp),%eax 80483e9: 89 44 24 08 mov %eax,0x8(%esp) 80483ed: 8b 45 fc mov 0xfffffffc(%ebp),%eax 80483f0: 89 44 24 04 mov %eax,0x4(%esp) 80483f4: c7 04 24 f8 84 04 08 movl $0x80484f8,(%esp) 80483fb: e8 b8 fe ff ff call 80482b8 <printf@plt> return 0; 8048400: b8 00 00 00 00 mov $0x0,%eax } int main(int arg, char argv[]) { 8048407: 55 push %ebp 8048408: 89 e5 mov %esp,%ebp 804840a: 83 ec 18 sub $0x18,%esp 804840d: 83 e4 f0 and $0xfffffff0,%esp 8048410: b8 00 00 00 00 mov $0x0,%eax 8048415: 83 c0 0f add $0xf,%eax 8048418: 83 c0 0f add $0xf,%eax 804841b: c1 e8 04 shr $0x4,%eax 804841e: c1 e0 04 shl $0x4,%eax 8048421: 29 c4 sub %eax,%esp int n = print("%d/n", 1, 2, 3); 8048423: c7 44 24 0c 03 00 00 movl $0x3,0xc(%esp) 804842a: 00 804842b: c7 44 24 08 02 00 00 movl $0x2,0x8(%esp) 8048432: 00 8048433: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) 804843a: 00 804843b: c7 04 24 0b 85 04 08 movl $0x804850b,(%esp) 8048442: e8 4d ff ff ff call 8048394 <print> 8048447: 89 45 fc mov %eax,0xfffffffc(%ebp) return 0; 804844a: b8 00 00 00 00 mov $0x0,%eax } |