Bona Fide OS Developer
View unanswered posts | View active topics It is currently Fri Sep 20, 2019 9:33 pm



Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
 [SOLVED] Setting es:bp 
Author Message

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: Setting es:bp
this is a bootloader?
then did you ORG 0x7C00?

ORG is important


Sat Nov 14, 2009 1:08 pm
Profile

Joined: Mon Oct 26, 2009 2:33 pm
Posts: 38
Location: United Kingdom
Post Re: Setting es:bp
By adding that it no longer boots into my code.

This is just the 1st stage, so is the first sector of the floppy image, if that makes any difference.

_________________
Andy Esser
neogenix Broadcast


Sat Nov 14, 2009 1:20 pm
Profile

Joined: Fri Nov 13, 2009 5:18 pm
Posts: 4
Post Re: Setting es:bp
hi, after adding the org 07C0 set your ds ,es and see what happen wish it work and repost you source code so we can well understand i will try t debug it for you .I dont put the blame on as86 but i prefer other assembler nasm for example ;)


Sat Nov 14, 2009 2:21 pm
Profile

Joined: Mon Oct 26, 2009 2:33 pm
Posts: 38
Location: United Kingdom
Post Re: Setting es:bp
I'm trying to convert my code over to nasm, I'm compiling with

nasm -f bin -o bootloader

It won't boot at all. Even a very very simple program.

If you could provide just the most basic program and the nasm command line call, I can give that a try and see if i'm doing some monumentally stupid.

Cheers

_________________
Andy Esser
neogenix Broadcast


Sat Nov 14, 2009 2:35 pm
Profile

Joined: Mon Oct 26, 2009 2:33 pm
Posts: 38
Location: United Kingdom
Post Re: Setting es:bp
Right, I am officially a much happier man now.

I finally got it working! W00h00.

I was being really really really f'ing stupid. I managed to get it compile with nasm, the reason i couldn't boot was because my virtual floppy image had dismounted itself and I hadn't realised.

I finally have it displaying the message I wanted.

Thanks to everyone!

_________________
Andy Esser
neogenix Broadcast


Sat Nov 14, 2009 2:51 pm
Profile

Joined: Fri Nov 13, 2009 5:18 pm
Posts: 4
Post Re: Setting es:bp
well Congratulations :P :P


Sat Nov 14, 2009 3:04 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 2 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.