I'm trying to print simple progress messages from my boot loader. But when I run the attatched bootloader, all it prints is
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????
Very strange indeed. Any insights?
Real mode print function not working!
-
Ushma
Re:Real mode print function not working!
Whilst I don't know that this is causing your problem, you seem to be making assumptions about the status of the segment registers. Get them into a known state before you do anything else. Also, you don't seem to be setting up a stack. You should do so.
-
Jubbens
Re:Real mode print function not working!
Set regs and moved the setting up of the stack to the bootstrap. No change.
???
???
Re:Real mode print function not working!
Hi,
It could be because of this:
I'd assume you'd want this instead:
While it's probably not a problem, I'd also use a "CLD" instruction somewhere - you never know when someone's gone and reversed the direction.
I've also heard of BIOSs that refuse to boot when the first instruction of the boot image isn't a "jmp" (a Compaq IIRC).
Cheers,
Brendan
It could be because of this:
Code: Select all
mov si,[msg1]Code: Select all
mov si,msg1I've also heard of BIOSs that refuse to boot when the first instruction of the boot image isn't a "jmp" (a Compaq IIRC).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
-
Jubbens
Re:Real mode print function not working!
Thanks Brendan, the square brackets were the problem.
You're awesome.
You're awesome.
