flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
zhak
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). |
|||
![]() |
|
rhyno_dagreat
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?
|
|||
![]() |
|
Kenneth
When it starts up the drive number is already in dl.
|
|||
![]() |
|
rhyno_dagreat
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?
|
|||
![]() |
|
zhak
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. |
|||
![]() |
|
rhyno_dagreat
Thanks!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.