23 lines
267 B
ArmAsm
23 lines
267 B
ArmAsm
.global _start
|
|
|
|
.section .text
|
|
_start:
|
|
xor %ebp, %ebp
|
|
push %ebp
|
|
mov %esp, %ebp
|
|
|
|
mov (%esp), %eax
|
|
lea 4(%esp), %ebx
|
|
lea 8(%esp, %eax, 4), %ecx
|
|
|
|
push %ecx
|
|
push %ebx
|
|
push %eax
|
|
|
|
call main
|
|
|
|
push %eax
|
|
1: jmp 1b
|
|
call exit
|
|
|