[Assembly] Printing text without any int

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.
Locked
benjamindu11
Posts: 2
Joined: Sun Sep 23, 2012 1:30 pm

[Assembly] Printing text without any int

Post by benjamindu11 »

Hi all,
I've began to write an operating system in assembly.

My boot sector loads my kernel (written in assembly) at address 0x1000.
In protected mode there are no interrupts so we must write in video memory (0xB8000).

But I don't know how to create a function that can prints text.
I just don't know how to get the text in RAM and copy it in the video RAM...

Don't be scared about my (very) bad English, that's because I'm french :)

Thank you :)

A young 14 Y.O. beginner :)
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Re: [Assembly] Printing text without any int

Post by Griwes »

The scary thing is the fact you failed hard at reading wiki, not your English...
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
benjamindu11
Posts: 2
Joined: Sun Sep 23, 2012 1:30 pm

Re: [Assembly] Printing text without any int

Post by benjamindu11 »

You don't understand I want a function that prints texts on the screen in assembly, because when I try I write a 100 line long function and it doesn't print my text... In the wiki there's the function that I want, but in C...
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: [Assembly] Printing text without any int

Post by iansjack »

This is about the simplest initial step in adventures in OS programming. If you can't do this with the information available in this Wiki and elsewhere on the net then I seriously doubt that you are ready for OS development.

Start with something a little simpler and come back when you have learnt a little more. You are going to find OS design too frustrating. Alternatively, search the Internet - there are plenty of beginner's tutorials on OS work.
Locked