How can I create my own video mode in assembly (x86, tasm, DOSbox)?
int 10h
in assembly enables me to open the graphics mode and to create a screen, but the dimensions of the screen are very limited. For example, if I want to have an option for 256 colors on the screen, the only option for the screen size is 320 pixels X 200 pixels.
I have researched a ton about this subject and didn't get anywhere. I have heard about something called video mode X, but I didn't understand it, and I heard can also ruin the graphics of my actual screen. I lost hope, but today I saw a very old answer about video mode which stated the following:
"You can create your own modes by writing directly to the ports of the video card" https://stackoverflow.com/a/14419154/13397045
This statement relieved my dream of creating a custom-sized screen in assembly. Is it really possible to do so? If true, how can we use the ports (or any other way) in order to create our own video modes (setting the dimensions of the screen and the number of possible colors)?