Patricknet Might end- i need help ERGENT

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Patricknet Might end- i need help ERGENT

Post by PatrickV »

I've been having some developing issues. I don't know if it is my code that my disks or computers don't like. I manage to make stable of Patricknet beta 0.1 and works all the time but now even beta 0.1 and other mostly other peoples code don't as well knowing that it work before. I've tried everything. it just loads the disk keep a blank screen and the floppy light just keeps going. Can anyone help me out. Also i am looking for beta testers to help while i havce this problem
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by 01000101 »

why not insert break points in your code to determine what makes it fail before you freak out about everything not working. Also, have you run the OS in an emulator (BOCHS) to get a more precise fail-point?
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

how do i do that?
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

Code: Select all

_asm
{
     cli
     hlt
}
or, if you're using GCC...

Code: Select all

asm volatile ("cli; hlt");
:wink:

see also: http://wiki.osdev.org/How_Do_I_Use_A_De ... reakpoints
OS-LUX V0.0
Working on...
Memory management: the Pool
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

thanks.
I will give that a try. I am just wondering if i put this code and it will say that stops the cpu. Will it stop every computer compiant such as floppy. What i get when the computer start it jmps to the floppy disk and hangs while the floppy disk light is still on which in my testing case it keep on loading and loading
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

I don't think breakpoints would help here, you might need alternative debugging techniques. :(

Would it hurt if you showed us your bootloader code? It might give us an idea of where the bug is...

...and are you sure there isn't any hardware damage to your computer?
OS-LUX V0.0
Working on...
Memory management: the Pool
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

unless you want to be part of the beta / development team. i don't mind if you look at the code. I've tried different hardware and everything i can get my hand on. I even tried some else's code which i know worked before but isn't now. You could be right. It may be a hardware problem. I don't know
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

Well... How can I get your code?

EDIT: :oops: I found your source code. I looked under PatricknetSourceCode(where it isn't), not patricknetsource(where it is).
Last edited by cr2 on Sun Sep 14, 2008 7:36 pm, edited 1 time in total.
OS-LUX V0.0
Working on...
Memory management: the Pool
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

Try declaring "padding" as this...

Code: Select all

padding     times 510-($-$$) db 0
my 100th post
OS-LUX V0.0
Working on...
Memory management: the Pool
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

done that. how do you use bochs? i was trying to get that work nope. I can give the latest on of my source code. goto my website and downloads
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

What went wrong with bochs when you tried to use it?
OS-LUX V0.0
Working on...
Memory management: the Pool
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

I've updated the source code. The problem is it is till doing the floppy disk loading jam thing i call it. I was trying to be a smart @$$ and use boches but i don't think it work etheir because i might have set it out wrong for a first timer
If you want to look for the current source code go to the PatricknetCurrentDevelopment folder under server.pvcomputers.co.nz
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

****!! Wrong folder again :oops:

Oh well...

add this before your printing code:

Code: Select all

xor ax, ax
mov ds, ax
mov es, ax
OS-LUX V0.0
Working on...
Memory management: the Pool
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Patricknet Might end- i need help ERGENT

Post by PatrickV »

Thanks. I would like to thankyou for taking out your time to help Patricknet beter. I will give that a go and see what happens. I hope this get me out of floppy disk loading disk jam #-o
User avatar
cr2
Member
Member
Posts: 162
Joined: Fri Jun 27, 2008 8:05 pm
Location: ND, USA

Re: Patricknet Might end- i need help ERGENT

Post by cr2 »

PatrickV wrote:Thanks. I would like to thankyou for taking out your time to help Patricknet beter.
Thanks. :D
OS-LUX V0.0
Working on...
Memory management: the Pool
Post Reply