Hello all,
I've got a small program going thru all video-modi by looping AL from 80
upto FF, calling INT 10, AH=00.
I would like to find out which of those modi are graphical. Ralf Browns memory list shows 0040:0065 to hold some bits regarding the current video mode. In my case the lower two bits are of interrest
Mode 03, text, shows the value 01. Alas, mode 0D, graphics, also shows 01. In fact, only modi 4 thru 6 show a 02 there, and modi 0 and 01 show a 00.
Al others show 01.
And I'm pretty sure there are few other graphics modi above mode 06 ...
tl;dr:
How do I find out if a certain mode is graphics ?
Secondary question : if the lower two bits of 0040:0065 are *not* the
current video-modes graphics and textmode capablities, what do they signify instead ?
How do I find out if a certain mode is graphics ?
Easy way: Use BIOS service to read a pixel.
*It's only applicable in graphic video mode.*
Hard way: Use the video ports to check the current type of video
mode. i.e. graphic or text.
Secondary question : if the lower two bits of 0040:0065 are *not* the
current video-modes graphics and textmode capablities, what do they
signify
instead ?
See Ralf Brown's Interrupt List.
JJ,
How do I find out if a certain mode is graphics ?
Easy way: Use BIOS service to read a pixel.
*It's only applicable in graphic video mode.*
(bolding mine)
Indeed. And, AFAICT, that means that *you should not be trying to use it*
in a non-graphics mode.
It also says squat about what happens if you do try. Which makes it
useless.
Hard way: Use the video ports to check the current type of video
mode. i.e. graphic or text.
And you don't think that suggestion is a bit ... vague ?
Secondary question : if the lower two bits of 0040:0065 are *not* the
current video-modes graphics and textmode capablities, what do they
signify
instead ?
See Ralf Brown's Interrupt List.
You're a funny guy. Not.
Whats the matter ? Did you step outof bed with the wrong foot first ? :-(
Can't give fish all the time. You gotta fish yourself eventually.
I've got a small program going thru all video-modi by looping AL from 80
upto FF, calling INT 10, AH=00.
I've got a small program going thru all video-modi by looping AL from 80
upto FF, calling INT 10, AH=00.
ask again in ALA
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 158:06:24 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,482 |