cprint problem

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
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

cprint problem

Post by os.hacker64 »

Ok, I have a function cprint, when I start up my kernel it is supposed to just print Kanu in red letters. What it does is display Kn plus some other weird character. I think it might be something with the character format fasm outputs but then why would it only display 3 chars instead of 4. I am assembling on linux and booting with grub.

PS. I'm using fasm and a flat binary format

PS2. Longmode.inc is empty right now as I haven't gone to Long mode yet

Here is the code:
Attachments
textmode.txt
(170 Bytes) Downloaded 25 times
kernel.asm
(697 Bytes) Downloaded 32 times
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

Oops, I feel stupid, I needed to increment ctex twice. :D It works now by the way. :D On to long mode....
Post Reply