Page 1 of 1
Problem with Color Print routine
Posted: Tue Oct 19, 2004 3:57 am
by KieranFoot
Pseudo code for print screen routine...
Code: Select all
Save registers
zero addr
Loop:
load character
if character = 0h then goto FinishPrint
if character = ah or dh or 1Bh then goto Loop
'Skip special characters, more to come...
poke B800h, addr, characeter
inc addr
poke B800h, addr, 1Fh ' Bright white on Blue text
inc addr
goto Loop
FinishPrint:
Restore Registers
Re:Problem with Color Print routine
Posted: Tue Oct 19, 2004 4:27 am
by ManOfSteel
And what's exactly your problem?
If you're running under protected mode, you should use B8000h.
Re:Problem with Color Print routine
Posted: Tue Oct 19, 2004 5:00 am
by Candy
KieranFoot wrote:
Pseudo code for print screen routine...
Code: Select all
if character = ah or dh or 1Bh then goto Loop
You might want to make that 0ah and 0dh, you confused me at first. You might've confused your assembler too
Re:Problem with Color Print routine
Posted: Tue Oct 19, 2004 5:20 am
by KieranFoot
Sorry guys i forgot to say what the problem is,
In bochs the code work fine, but
when i run the routine on my pc with my kernel it just displays a neverending string of 1Fh
Re:Problem with Color Print routine
Posted: Tue Oct 19, 2004 7:22 am
by Brendan
Hi,
When you say it prints a never-ending string of 0x1F, do you mean that it prints a triangle instead characters, and that the triangles are all different colours?
Or does it display "1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh..."?
Cheers,
Brendan
Re:Problem with Color Print routine
Posted: Tue Oct 19, 2004 8:45 am
by KieranFoot
the later...
Re:Problem with Color Print routine
Posted: Wed Oct 20, 2004 6:37 am
by Pype.Clicker
i fail to see how that can be done with "regular" assembler ... can we see the real sources and know what assembler you use ?
Re:Problem with Color Print routine
Posted: Wed Oct 20, 2004 6:42 am
by Neo
where's your source?
Re:Problem with Color Print routine
Posted: Thu Oct 21, 2004 5:48 am
by KieranFoot
sorry guys, but the problem no longer exists