Advertising (This ad goes away for registered users. You can Login or Register)

x86 Programming

Discuss about your favorite (gaming...or not) devices here. The most popular ones will end up getting their own categories
Programming discussions for your favorite Device
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: x86 Programming

Post by m0skit0 » Tue Apr 05, 2011 3:34 pm

A lot of time? Why would it take a lot of time?
Advertising
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Nickolas
Posts: 174
Joined: Sat Jan 22, 2011 3:14 pm
Location: In a black hole...

Re: x86 Programming

Post by Nickolas » Tue Apr 05, 2011 7:04 pm

m0skit0 wrote:A lot of time? Why would it take a lot of time?
I have to lod the image file and then unload it in order to boot into Windows to compile my OS and then load it again to test it... And this is repeated every single time i make a slight change.. LOL It is frustrating...
Advertising
Image
Image
Image
Image

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: x86 Programming

Post by m0skit0 » Tue Apr 05, 2011 8:10 pm

Use a virtual machine. I recommend Bochs because you can debug with it, it has a separate advanced console for controlling the VM.

I strongly recommend using Linux. I had very little problems and you have tools that are rarely available on Windows, such as dd. NASM runs prefectly on Linux as well, no problem on that side. Bochs also runs like a charm.

On a side note, try to use the BIOS calls as less as possible. Try to do it yourself ;)
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Nickolas
Posts: 174
Joined: Sat Jan 22, 2011 3:14 pm
Location: In a black hole...

Re: x86 Programming

Post by Nickolas » Wed Apr 06, 2011 2:01 pm

m0skit0 wrote:On a side note, try to use the BIOS calls as less as possible. Try to do it yourself ;)
My Assembly is still not that good... I actually use BIOS calls a lot... I'll try to fix that.. Is it possible to be able to call something only in certain BIOSes and not on others? (This never happened to me, I am just asking..)
Image
Image
Image
Image

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: x86 Programming

Post by m0skit0 » Wed Apr 06, 2011 2:04 pm

Not that I know about. BIOS use such functions for compatibility purposes mostly, although some OSs still use such functions.

And I still insist: use Linux.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Strangelove
Posts: 286
Joined: Thu Nov 25, 2010 6:32 pm

Re: x86 Programming

Post by Strangelove » Wed Apr 06, 2011 2:40 pm

What do you got so far?
"If you have specific questions ... don't hesitate to ask as the more generic the question is the more philosophic the answer will be" - PSPWizard

Nickolas
Posts: 174
Joined: Sat Jan 22, 2011 3:14 pm
Location: In a black hole...

Re: x86 Programming

Post by Nickolas » Wed Apr 06, 2011 7:56 pm

m0skit0 wrote:Not that I know about. BIOS use such functions for compatibility purposes mostly, although some OSs still use such functions.

And I still insist: use Linux.
I am on a MacBook so a triple boot between Windows Mac and Linux is gonna be weird...
Image
Image
Image
Image

Nickolas
Posts: 174
Joined: Sat Jan 22, 2011 3:14 pm
Location: In a black hole...

Re: x86 Programming

Post by Nickolas » Wed Apr 06, 2011 7:57 pm

Strangelove wrote:What do you got so far?
Just a kernel capable of displaying a welcome screen... Now I want to port some apps from MikeOS to my OS just for testing... Or I may even try to implement my own..
Image
Image
Image
Image

Nickolas
Posts: 174
Joined: Sat Jan 22, 2011 3:14 pm
Location: In a black hole...

Re: x86 Programming

Post by Nickolas » Sat Apr 30, 2011 10:54 am

It's been a lot of time since I posted something in this thread, so I have another question. My OS has changed a lot. It is now a 32-bit OS and runs in p-mode. (Yay :D ) Just for testing purposes I decided to make an installer. But I was too bored to write another bootloader for the installer or even change my normal one so I thought of another way. Here goes: The user boots into the os using a cd (I don't want him to be able to change the files of the os). The user runs an installer through the os. The installer copies the files to the specified HD. Everything happens correctly and the files get copied to the HD (I have drivers) (Yay again :D ) And now the question. How can I copy files to the bootsector of the HD?

Thanks in advance!
Image
Image
Image
Image

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: x86 Programming

Post by m0skit0 » Sat Apr 30, 2011 11:58 am

Nice work.
Nickolas wrote:The user boots into the os using a cd (I don't want him to be able to change the files of the os)
This is nonsense because he can just copy the CD contents to the HD and modify them. If everybody would be as protective, you couldn't be able to write your own OS right now. And if this is your thinking mode, I don't want to help you either.

Good luck with it.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Post Reply

Return to “Programming and Security”