brucecc -S main.c -o main.s
|
|
echo -e "push bp
|
|
mov bp,sp
|
|
push 10[bp]
|
|
push 8[bp]
|
|
push 6[bp]
|
|
call _main
|
|
add sp, #0x6
|
|
pop bp
|
|
retf\n $(cat main.s)" > main.s
|
|
sed -i '/.globl ___mkargv/d' ./main.s
|
|
sed -i '/.globl _environ/d' ./main.s
|
|
sed -i '/^.data$/d' ./main.s
|
|
as86 -b disk.out main.s
|