Hi I am trying to use vesa mode in my os and I am using this tutorial: Drawing In Protected Mode
I got the resolution to switch but I don't know how to draw a pixel.
here is my code:
kernel.asm
bits 32
section .text
align 4
dd 0x1BADB002
dd 0x04
dd -(0x1BADB002 + 0x04)
dd 0 ; skip some flags
dd 0
dd 0
dd 0
dd 0
dd 0 ; sets it to graphical mode
dd 800 ; sets the width
dd 600 ; sets the height
dd 32 ; sets the bits per pixel
push ebx
global start
extern kmain
start:
cli
call kmain
hlt
kernel.c
#include "include/types.h"
kmain(){
}
thank you in advance