|
|
- bcc -S main.c
- echo -e "push bp
- mov bp,sp
- push 12[bp]
- push 10[bp]
- push 8[bp]
- push 6[bp]
- call _main
- add sp, 0x4
- pop bp
- retf $(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
|