Bona Fide OS Developer
View unanswered posts | View active topics It is currently Thu Mar 28, 2024 12:47 pm



Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
 How do i get my kernel to load binary programs? 
Author Message
Post Re: How do i get my kernel to load binary programs?
i am having fun implmenting it into my kernel
tasm never gives me trouble
p.s. turbo debugger is awesome


Fri Oct 09, 2009 11:29 pm
Post Re: How do i get my kernel to load binary programs?
uhoh
Code:
Turbo Link  Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol exec(void near*) in module NODOS.CPP
Warning: No stack


Sat Oct 10, 2009 12:01 am

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: How do i get my kernel to load binary programs?
Code:
TCC -v -mt kernel.c exec.obj

you need to include exec.obj at TCC


Sat Oct 10, 2009 6:33 am
Profile
Post Re: How do i get my kernel to load binary programs?
Turbo Link Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol exec(void near*) in module NODOS.CPP


Sat Oct 10, 2009 12:29 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: How do i get my kernel to load binary programs?
you have to link in EXEC.OBJ
assemble EXEC.ASM -> EXEC.OBJ
then link it in with whatever needs it...


Sat Oct 10, 2009 12:37 pm
Profile
Post Re: How do i get my kernel to load binary programs?
heres how i compile
nasm16 -f bin -o bnl.bin boot.asm
tasm exec
tasm call
tcc -mt -c nodos
tlink /n /m call+exec+nodos, call.exe
exetobin call.exe kernel.ker
copy /b bnl.bin+kernel.ker kernel.out
copy kernel.ker dbg.com


Sat Oct 10, 2009 12:46 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: How do i get my kernel to load binary programs?
try:
Code:
tcc -mt -c nodos.c exec.obj
tlink /n /m call+nodos, call.exe


Sat Oct 10, 2009 2:38 pm
Profile
Post Re: How do i get my kernel to load binary programs?
same linker error


Sat Oct 10, 2009 3:37 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: How do i get my kernel to load binary programs?
case sensitivity maybe?
else I have no clue


Sat Oct 10, 2009 3:46 pm
Profile
Post Re: How do i get my kernel to load binary programs?
tried with and without case sensitivity
but i do remember that tlink hates it when i call asm code from c


Sat Oct 10, 2009 4:27 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.