more userspace stuff
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
.global _start
|
||||
.intel_syntax noprefix
|
||||
|
||||
.section .text
|
||||
_start:
|
||||
xor ebp, ebp
|
||||
push ebp
|
||||
mov ebp, esp
|
||||
xor %ebp, %ebp
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
mov eax, [esp + 4]
|
||||
lea ebx, [esp + 8]
|
||||
lea ecx, [esp + 12]
|
||||
mov (%esp), %eax
|
||||
lea 4(%esp), %ebx
|
||||
lea 8(%esp, %eax, 4), %ecx
|
||||
|
||||
push ecx
|
||||
push ebx
|
||||
push eax
|
||||
push %ecx
|
||||
push %ebx
|
||||
push %eax
|
||||
|
||||
call main
|
||||
|
||||
push eax
|
||||
push %eax
|
||||
call exit
|
||||
|
||||
1: hlt
|
||||
jmp 1b
|
||||
1: jmp 1b
|
||||
|
||||
Reference in New Issue
Block a user