4 # error "This file assumes -mregparm=3 -DREGPARM=3"
11 # Align the stack and make sure the high half is zero
14 # DS, ES points to the PSP at this point
15 pushw %es # Save PSP pointer
29 # Copy the command line into our own segment
35 # Already zero-terminated since we're writing into clean bss
37 # Compute argc and argv (assumes REGPARM)
39 pushl %eax # Make space for argv
45 calll __init_memory_arena
47 # Now call main... (NOTE: gcc forces main to be regparm 0)
52 # Here %eax is the exit code, fall through into exit
59 # Exit code already in %eax
60 movb $0x4c,%ah # Terminate program
70 .size _cmdline,.-_cmdline