flat assembler
Message board for the users of flat assembler.
Index
> DOS > Video Text Modes |
Author |
|
rugxulo 24 May 2012, 21:24
Last edited by rugxulo on 26 May 2012, 06:23; edited 1 time in total |
|||
24 May 2012, 21:24 |
|
sinsi 25 May 2012, 02:26
Here's how I do it
Code: ;set VGA 400 lines mov ax,1202h mov bl,30h int 10h ;set VGA 80x25 colour mov ax,3 int 10h ;set 8x8 font mov ax,1112h sub bl,bl int 10h |
|||
25 May 2012, 02:26 |
|
Homeground 25 May 2012, 05:55
sinsi wrote: Here's how I do it The trouble is, I can't see any relation between those register values and the actual number of characters you get, per line or per column. And Ralf Brown's interrupt list isn't very informative on that point. I tried your routine and got a screen of 80x50. How would I amend that routine to get more characters horizontally - for example, 128x50? or 43? or whatever is available at that width? |
|||
25 May 2012, 05:55 |
|
sinsi 25 May 2012, 06:14
To get more than 80 columns you either use a VESA mode or need to reprogram the VGA registers.
The first link in rugxulo's post (SETMXX.ZIP) has the source, that should help, |
|||
25 May 2012, 06:14 |
|
freecrac 26 May 2012, 05:23
Homeground wrote: The trouble is, I can't see any relation between those register values and the actual number of characters you get, per line or per column. And Ralf Brown's interrupt list isn't very informative on that point. I tried your routine and got a screen of 80x50. How would I amend that routine to get more characters horizontally - for example, 128x50? or 43? or whatever is available at that width? RBIL->inter61a.zip->Interrup.a Quote:
Quote: --------V-101114----------------------------- Quote:
Quote:
http://www.balug.org.ar/ConfTips/Fonts/etc/TextConfig Dirk |
|||
26 May 2012, 05:23 |
|
rugxulo 26 May 2012, 06:24
Sorry, forgot about FreeDOS' own MODE.COM utility. It has sources, so you can look at that also. It may help.
|
|||
26 May 2012, 06:24 |
|
Homeground 26 May 2012, 08:54
I tried the four modes from SETMXX.ZIP, but it turns out only 80x43 is supported on my system. I think I need a card. The machine I'm using is my second machine, an old Dell GX280 that I got off ebay, which I intend to reserve for programming in DOS. It doesn't have a card, but I didn't think I needed one. I won't be doing any graphics programming, just text-based. It has integrated Intel Extreme graphics. I assumed it would support multiple text modes at least, but it looks like it doesn't. I'll have to put everything on hold until I get a card capable of supporting these different modes. The motherboard has a PCI Express slot, and I've had a quick look on ebay for something usable. But I don't want to get the wrong one. There are several VTX3D ATI Radeon 5450 HD 1GB cards going for a reasonable price. Would that be a good choice?
|
|||
26 May 2012, 08:54 |
|
rugxulo 30 May 2012, 17:16
No idea what a good choice is, I just figured most modern cards supported everything.
BTW, why do you need more than 80x43? That's what I've been using lately, it's plenty nice enough. Anything higher would be too small to comfortably read, IMHO, and not all DOS apps support higher resolutions. Don't want to discourage you, just saying .... |
|||
30 May 2012, 17:16 |
|
Homeground 30 May 2012, 19:14
rugxulo wrote: BTW, why do you need more than 80x43? That's what I've been using lately, it's plenty nice enough. Anything higher would be too small to comfortably read, IMHO, and not all DOS apps support higher resolutions. I don't want it for other Dos apps, just my own program. I need more than 80 chrs width, because a lot of the data would need a divided screen. As I said earlier, the data is Elizabethan texts. There was no copyright in those days, and a lot of plays from the period come in more than one version, most of them pirated. It would be desirable to have two versions side by side, to compare one with the other. Whether smaller text is comfortable to read depends on the resolution, I guess. The text editor that I have on my task bar at the moment is showing a 96 chr width, but is perfectly readable on my 17-inch laptop. On the 22-inch monitor I use for programming it's no problem to read it from 4 ft away. No doubt that is achieved in graphics mode, with a software-generated font. And if necessary, I'll go graphics mode myself, drawing the screen line by line. But it would be easier if there was a text-mode that fitted my requirements. |
|||
30 May 2012, 19:14 |
|
rugxulo 07 Jun 2012, 07:39
It might be your video card or maybe only the monitor, dunno. 80x43 is EGA, limited by 640x350 resolution, apparently. But I don't really know anything more than that. So I guess you need a better VESA-compliant card (or maybe beyond) for anything beyond 80 columns. VESA may be limited to 132x60, but you can maybe? use higher with certain proprietary cards with SVGAtextmode (untested by me). Actually, who knows, maybe not all VESA cards support text modes properly.
Sorry, there is no easy answer, or at least I dunno. I guess just research various cards online and see what they support. But if you want DOS support too, it may be harder to find (beyond what VESA supports), so SVGAtextmode (or something else) may be your only choice. EDIT: Since this is FASM's forum, you're probably writing it in assembly, but you could always check out something like the libraries Allegro or DEPUI or GRX or whatever to see what they support (graphics modes, GUIs, fonts). |
|||
07 Jun 2012, 07:39 |
|
madmatt 07 Jun 2012, 11:50
HomeGround, this link might answer some of your questions:
http://en.wikipedia.org/wiki/VGA-compatible_text_mode |
|||
07 Jun 2012, 11:50 |
|
Homeground 07 Jun 2012, 12:37
Thanks. I'll look into all that. The Radeon card I ordered has arrived, but I haven't installed it yet. We'll see what that does for me.
|
|||
07 Jun 2012, 12:37 |
|
CandyMan 30 Aug 2012, 17:45
See video text mode switcher.
_________________ smaller is better Last edited by CandyMan on 22 Jul 2014, 17:14; edited 1 time in total |
|||
30 Aug 2012, 17:45 |
|
freecrac 31 Aug 2012, 07:09
rugxulo wrote: No idea what a good choice is, I just figured most modern cards supported everything. I read that 80x43 only rare exist on modern cards. So i think it is not a good choice for to use 80x43. In the past i always use 80x50, also in the first time with using a 9" monochrom CRT monitor. Quote: Anything higher would be too small to comfortably read, IMHO, and not all DOS apps support higher resolutions. I hope most of them provide 80x50 and i think it is not so comfortable to use a lesser row size, because i want to see for example all 50 filenames on the screen and not only the first 25 with needing to scolldown to see the rest of them, or i want to see a routine of a sourcecode without to scolling up and down frequently with a lesser row size. For me it is easier for to overview a sourcode and for to understand a longer part of a routine how it is exactly work. (Thats only my personal view, for all other i hope you will find 80x43 on your cards, if you like it more.) @Candyman: I only can see an executable. It is possible to post the source code of it too, because i think it would be more helpfull for beginners? Dirk |
|||
31 Aug 2012, 07:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.