mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
This commit is contained in:
parent
5bd0af884d
commit
f352425b33
1 changed files with 5 additions and 4 deletions
|
|
@ -280,13 +280,14 @@ namespace Cosmos.Compiler.Builder {
|
|||
|
||||
public void Assemble() {
|
||||
RemoveFile(BuildPath + "output.obj");
|
||||
Global.Call(ToolsPath + @"nasm\nasm.exe", String.Format("-g -f elf -F stabs -o \"{0}\" \"{1}\"", BuildPath + "output.obj", AsmPath + "main.asm"), BuildPath);
|
||||
Global.Call(ToolsPath + @"nasm\nasm.exe", String.Format("-g -f bin -o \"{0}\" \"{1}\"", BuildPath + "output.obj", AsmPath + "main.asm"), BuildPath);
|
||||
}
|
||||
|
||||
public void Link() {
|
||||
RemoveFile(BuildPath + "output.bin");
|
||||
Global.Call(ToolsPath + @"cygwin\ld.exe", String.Format("-Ttext 0x500000 -Tdata 0x200000 -e Kernel_Start -o \"{0}\" \"{1}\"", "output.bin", "output.obj"), BuildPath);
|
||||
RemoveFile(BuildPath + "output.obj");
|
||||
//RemoveFile(BuildPath + "output.bin");
|
||||
//Global.Call(ToolsPath + @"cygwin\ld.exe", String.Format("-Ttext 0x500000 -Tdata 0x200000 -e Kernel_Start -o \"{0}\" \"{1}\"", "output.bin", "output.obj"), BuildPath);
|
||||
//RemoveFile(BuildPath + "output.obj");
|
||||
File.Move(Path.Combine(BuildPath, "output.obj"), Path.Combine(BuildPath, "output.bin"));
|
||||
}
|
||||
|
||||
public void MakeVPC() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue