chars in graphics mode..
Posted: Sat Jul 12, 2008 3:39 am
how to write characters in graphics mode !!!!
i can jus plot pixel !!
i can jus plot pixel !!
The Place to Start for Operating System Developers
http://f.osdev.org/
One of the most efficient methods tends to go something like this (for 256 colour mode with 8 * 8 character data):asdfgh wrote:how to write characters in graphics mode !!!!
i can jus plot pixel !!
Code: Select all
colourMask = colour << 24 | colour << 16 | colour << 8 | colour
for(row = 0; row < 8; row++) {
rowData = characterData[character][row];
byteMask1 = conversionMask_8_to32[rowData][0];
byteMask2 = conversionMask_8_to32[rowData][1];
*(u32 *)screenAddress = (colourMask & byteMask1) | (*(u32 *)screenAddress & ~byteMask1);
*(u32 *)(screenAddress + 4) = (colourMask & byteMask2) | (*(u32 *)(screenAddress + 4) & ~byteMask2);
screenAddress += bytes_per_row;
}
You are just teasing him aren't you? It's quite clear he hasn't got a clue about much, let alone about SSE or long mode .Brendan wrote:Note2: This same basic technique can work really well with SSE or in long mode, especially if you unroll the loop.
Yah have a feeling he's one off those people who write a VESA driver without doing anything else then try and setup a form of TUI on it....jal wrote:You are just teasing him aren't you? It's quite clear he hasn't got a clue about much, let alone about SSE or long mode .Brendan wrote:Note2: This same basic technique can work really well with SSE or in long mode, especially if you unroll the loop.
JAL
Maybe not *him*, but I'm sure someone else might stumble across this thread and read Brendan's post and figure out one of their problems. All it takes is a simple forum searchYou are just teasing him aren't you? It's quite clear he hasn't got a clue about much, let alone about SSE or long mode