Video Pointer C++ RealMode
Posted: Fri Oct 26, 2007 5:26 pm
Hello, I'm making a 16 bit operating system with Turbo C++ 3.0 and I decided not to use BIOS interrupts (becauses I want to do all the work for myself).
I know that in real mode, memory is accessed by a segment and an offset, so i can use a poke and pokeb procedures to write to the video memory but i know, and i've heard that some people uses a pointer to video memory 0xb800 and then write to memory trough that pointer.
Question: How can i create that pointer?
Maybe you would recomend me to use protected mode, but i cant understand it, and i think the proper way of starting osdev is by the simplest (realmode).
I know that in real mode, memory is accessed by a segment and an offset, so i can use a poke and pokeb procedures to write to the video memory but i know, and i've heard that some people uses a pointer to video memory 0xb800 and then write to memory trough that pointer.
Question: How can i create that pointer?
Maybe you would recomend me to use protected mode, but i cant understand it, and i think the proper way of starting osdev is by the simplest (realmode).