Files
RockOS/programs/crt0.S

22 lines
266 B
ArmAsm
Raw Normal View History

.global _start
.section .text
_start:
2026-07-01 20:00:22 -05:00
xor %ebp, %ebp
push %ebp
mov %esp, %ebp
2026-07-01 20:00:22 -05:00
mov (%esp), %eax
lea 4(%esp), %ebx
lea 8(%esp, %eax, 4), %ecx
2026-07-01 20:00:22 -05:00
push %ecx
push %ebx
push %eax
call main
2026-07-01 20:00:22 -05:00
push %eax
call exit
2026-07-01 20:00:22 -05:00
1: jmp 1b