How to make a vga buffer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to make a vga buffer

so im trying to make a vga buffer and i cant fix it https://code.sololearn.com/cY7n30TX9EI8/?ref=app can you fix it

6th Nov 2019, 1:09 AM
Djcoldcrown
Djcoldcrown - avatar
2 Answers
+ 2
It appears that you're trying to directly access physical memory, which is probably completely impossible in Sololearn. If you are trying to write an OS (I don't know much about that), the osdev wiki is a good resource.
16th Nov 2019, 4:49 AM
LunarCoffee
LunarCoffee - avatar
+ 1
I don't even know what you are doing here, but I noticed you define the `WriteCharacter` function within the main function. Not sure if this was supported on most compilers (or at all). And the way you're calling the function in main was incorrect `WriteCharacter(int 69,int 42,int 92);`
6th Nov 2019, 7:41 AM
Ipang