Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 1 | .file "alloca.s" |
2 | .text | ||||
3 | .align 4 | ||||
4 | .def alloca; .val alloca; .scl 2; .type 044; .endef | ||||
5 | .globl alloca | ||||
6 | alloca: | ||||
7 | popl %edx | ||||
8 | popl %eax | ||||
9 | addl $3,%eax | ||||
10 | andl $0xfffffffc,%eax | ||||
11 | subl %eax,%esp | ||||
12 | movl %esp,%eax | ||||
13 | pushl %eax | ||||
14 | pushl %edx | ||||
15 | ret | ||||
16 | .def alloca; .val .; .scl -1; .endef |