I'm trying to make some code that directly interfaces with the VGA card(in real mode), I know the ports(0x3c6, 0x3c7, 0x3c8, 0x3c9) I need to use to output data on the screen. My code is this:
mov ax, 0 out 0x3c8, ax ;plot pixel at location 0 mov ax, 4 out 0x3c9, ax ;output color index 4 to screen
First off this code doesn't work, second, I get warnings during assembling (with nasm) it.
The warnings are all the same this:
"warning: unsigned byte value exceeds bounds", I can't seem to fix this what may be wrong?
0x3c6 = palette mask port
0x3c7 = Read port
0x3c8 = Write port
0x3c9 = Data port