Page 1 of 2

Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 5:31 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:18 pm
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?

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:32 pm
by PatrickV
how do i do that?

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:36 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:44 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:51 pm
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?

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 6:58 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 7:15 pm
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).

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 7:24 pm
by cr2
Try declaring "padding" as this...

Code: Select all

padding     times 510-($-$$) db 0
my 100th post

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:13 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:14 pm
by cr2
What went wrong with bochs when you tried to use it?

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:25 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:32 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:37 pm
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

Re: Patricknet Might end- i need help ERGENT

Posted: Sun Sep 14, 2008 8:42 pm
by cr2
PatrickV wrote:Thanks. I would like to thankyou for taking out your time to help Patricknet beter.
Thanks. :D