Strange Effects

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ash

Strange Effects

Post by ash »

Hi. Im getting some strange effects. My kernel etc loads fine. But after adding a certain amount of "strings" to my code, no text will write to the screen. The cursor will move but it jsut like printing black text on a black background. Any ideas?
Thx, ash.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Strange Effects

Post by Pype.Clicker »

either you actually have black on black, or your strings have been stripped out of your kernel image at link time. hexdump kernel.bin to find out (check everything is there :)
ash

Re:Strange Effects

Post by ash »

Ok, i used kHexEdit (KDE's hex editor) and the strings are there. Im not printing black on black... its very strange :s If I comment out some strings in the kernel, and leave some there, its fine. It seems to be not "printing" properly when you use a certain amoutn of characters in the kernel... :s any more ideas? :s
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Strange Effects

Post by Pype.Clicker »

if i were you, i would give my print functions a try in a legacy program, operating on a 80x25x2 byte array and use a debugger like DDD to see whether it works as expected.
anubis

Re:Strange Effects

Post by anubis »

if u r loading the kernel from a floppy disk i can suggest that check whether the whole kernel with the strings r loaded into the memory or not.

i once got such a problem( that of reapeated rebooting) when i loaded only part of the kernel missing the other part 'cos it was on another sector.
ash

Re:Strange Effects

Post by ash »

Fixed! Added some extra options to the linker, and seems to work fine...so far :) thx
kevin

Re:Strange Effects

Post by kevin »

omg, he could of at least said what options he added, lol, im having a very simlar problems - any ideas?
Post Reply