asm_book/section_1/regs/badstack.s
2023-02-23 13:42:45 -06:00

10 lines
231 B
ArmAsm

/* The purpose of this program is to crash due to not manipulating the
stack in multiples of 16.
*/
.global main
.text
.align 2
main: str x30, [sp, -8]!
ldr x30, [sp], 8
ret