flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Booting Issue! |
Author |
|
zhak 31 Jul 2006, 21:25
first of all, you should place your message after code, or issue jmp start command before it, because BIOS redirects execution flow on 0:7C00 and your text is interpreted as commands and executed. that's why nothing works.
also, it's better to use BIOS Drive Number that is returned by BIOS in DL register when you call INT 13h, but not set it hardcoded as you've done (mov dl, 0). |
|||
31 Jul 2006, 21:25 |
|
rhyno_dagreat 31 Jul 2006, 23:10
Thanks zhak! That did it! And it was something so trivial... Anyways, I'm wondering about what you just said about the BIOS returning the drive number? How does it do that, if you don't mind my asking?
|
|||
31 Jul 2006, 23:10 |
|
Kenneth 01 Aug 2006, 00:37
When it starts up the drive number is already in dl.
|
|||
01 Aug 2006, 00:37 |
|
rhyno_dagreat 01 Aug 2006, 02:53
Ah... I see... thanks! BTW... I recall a while ago there was a bunch of FASM programming tutorials out there... does anyone know any weblinks to them?
|
|||
01 Aug 2006, 02:53 |
|
zhak 01 Aug 2006, 10:43
http://www.phoenix.com/NR/rdonlyres/56E38DE2-3E6F-4743-835F-B4A53726ABED/0/specsbbs101.pdf
This is BIOS Boot Specification. Take a look at this document. It's useful for a boot loader writer. |
|||
01 Aug 2006, 10:43 |
|
rhyno_dagreat 01 Aug 2006, 18:34
Thanks!
|
|||
01 Aug 2006, 18:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.