author | cu |
Mon, 23 Oct 2017 01:09:09 +0100 | |
changeset 556 | e6e87d5839c0 |
parent 396 | 2f4296a0ab21 |
permissions | -rw-r--r-- |
_foo: push %ebp ; push current sp onto stack mov %esp,%ebp ; current sp into esp sub $0x10,%esp ; subtract 16 from esp movl $0x64636261,-0x6(%ebp) ; store abcd in ebp - 6 movw $0x65,-0x2(%ebp) ; store e in ebp - 2 movl $0x34333231,-0x10(%ebp) ; store 1234 in ebp - 16 movl $0x38373635,-0xc(%ebp) ; store 5678 in ebp - 12 movw $0x39,-0x8(%ebp) ; store 9 in ebp - 8 leave ; pop last sp into ebp ret ; pop return address and ; go back to main