24 lines
282 B
ArmAsm
24 lines
282 B
ArmAsm
|
|
.global _start
|
||
|
|
.intel_syntax noprefix
|
||
|
|
|
||
|
|
.section .text
|
||
|
|
_start:
|
||
|
|
xor ebp, ebp
|
||
|
|
push ebp
|
||
|
|
mov ebp, esp
|
||
|
|
|
||
|
|
mov eax, [esp + 4]
|
||
|
|
lea ebx, [esp + 8]
|
||
|
|
lea ecx, [esp + 12]
|
||
|
|
|
||
|
|
push ecx
|
||
|
|
push ebx
|
||
|
|
push eax
|
||
|
|
|
||
|
|
call main
|
||
|
|
|
||
|
|
push eax
|
||
|
|
call exit
|
||
|
|
|
||
|
|
1: hlt
|
||
|
|
jmp 1b
|