Board index » delphi » HELP IN TP Programming

HELP IN TP Programming

I am fixing to make a text reader programing running under dos/v
(Japanese Dos)  If you know, Japanese Dos runs under a 640x480 pixel
screen; therefore normal text reader with the screen size of 80x25
characters  will not work under dos/v.  So, in order to make a dos/v
text reader I have to set up a TEXTMODE screen that is equvalent to
640 x 480 pixel screen. I am currently using TP 5.5 and it does not
have a text mode that suports 640x480, like VGA.  Is there a text mode
that goes beyond 80 x 25 characters? If so how is it accomplished?

Thanks in advance,
-Henry
T...@why.net  
RELOadEVerYTimeYouVIsitBeCAUSEmyPAgeSAreUpDatedOfTEn
-----======[ Henry's HomePage Experiment ]======-----
 Anime, Manga, Music, Programming, and More  
                     AT
        HTTP://www.why.net/home/TANG/
==================================================
!!SEtYouRSCreEnTo800x600PIXeLforFuLlComPaTiBiLiTy!!

 

Re:HELP IN TP Programming


Quote
Henry Tang (T...@why.net) wrote:

: I am fixing to make a text reader programing running under dos/v
: (Japanese Dos)  If you know, Japanese Dos runs under a 640x480 pixel
: screen; therefore normal text reader with the screen size of 80x25
: characters  will not work under dos/v.  So, in order to make a dos/v
: text reader I have to set up a TEXTMODE screen that is equvalent to
: 640 x 480 pixel screen. I am currently using TP 5.5 and it does not
: have a text mode that suports 640x480, like VGA.  Is there a text mode
: that goes beyond 80 x 25 characters? If so how is it accomplished?

: Thanks in advance,
: -Henry
: T...@why.net  
: RELOadEVerYTimeYouVIsitBeCAUSEmyPAgeSAreUpDatedOfTEn
: -----======[ Henry's HomePage Experiment ]======-----
:  Anime, Manga, Music, Programming, and More  
:                      AT      
:         HTTP://www.why.net/home/TANG/
: ==================================================
: !!SEtYouRSCreEnTo800x600PIXeLforFuLlComPaTiBiLiTy!!

there is a way to get into 640x480x256,

asm
  mov   ax,002eh
  int   10h
end;

if 002eh doesn't work, just try values like 002fh and so on..
victor dods

Re:HELP IN TP Programming


Quote
mang...@netcom.com (Victor Dods) wrote:

-->: screen; therefore normal text reader with the screen size of to
-->: 640 x 480 pixel screen. I am currently using TP 5.5 and it does
not
-->: have a text mode that suports 640x480, like VGA.  Is there a text
mode
-->: that goes beyond 80 x 25 characters? If so how is it
accomplished?
-->
-->
-->asm
-->  mov     ax,002eh
-->  int     10h
-->end;
-->
-->if 002eh doesn't work, just try values like 002fh and so on..
-->victor dods
-->

I tried implementing the asm codes by putting it right after

BEGIN
ASM

...
....
end;

This asm code clears the screen and sometime acts like the DIR
command.  I also tried changing the 002xh code it does not work.
Any more solution to my problem?

-Henry

RELOadEVerYTimeYouVIsitBeCAUSEmyPAgeSAreUpDatedOfTEn
-----======[ Henry's HomePage Experiment ]======-----
 Anime, Manga, Music, Programming, and More  
                     AT
        HTTP://www.why.net/home/TANG/
==================================================
!!SEtYouRSCreEnTo800x600PIXeLforFuLlComPaTiBiLiTy!!

Re:HELP IN TP Programming


In article <mangledDqpF1E....@netcom.com>,

Quote
Victor Dods <mang...@netcom.com> wrote:

>there is a way to get into 640x480x256,

>asm
>  mov       ax,002eh
>  int       10h
>end;

>if 002eh doesn't work, just try values like 002fh and so on..
>victor dods

Bad advise. Playing randomly with video modes could at worst destroy the
monitor. A proper solution is to find proper documentation.

Osmo

Re:HELP IN TP Programming


Quote
In article <3186ae15.5188...@news.why.net>, Henry Tang <T...@why.net> wrote:

>I am fixing to make a text reader programing running under dos/v
>(Japanese Dos)  If you know, Japanese Dos runs under a 640x480 pixel
>screen; therefore normal text reader with the screen size of 80x25
>characters  will not work under dos/v.  So, in order to make a dos/v
>text reader I have to set up a TEXTMODE screen that is equvalent to
>640 x 480 pixel screen. I am currently using TP 5.5 and it does not
>have a text mode that suports 640x480, like VGA.

I cannot parse the above. The VGA text modes are 640 x 400, not 640 x
480.

Quote
>Is there a text mode
>that goes beyond 80 x 25 characters? If so how is it accomplished?

What do you want exactly? Do you want a text mode that uses 480 scan
lines instead of the normal 400 so that you can define a character set
that you can use a font with 19 scan lines to get 80x25 display?

Or do you want a normal text mode that has greater resolution than 80 x
25?

Osmo

Re:HELP IN TP Programming


Quote
In article <4mfa64$...@kruuna.helsinki.fi> ronka...@cc.helsinki.fi (Osmo Ronkanen) writes:
>In article <mangledDqpF1E....@netcom.com>,
>Victor Dods <mang...@netcom.com> wrote:

>>there is a way to get into 640x480x256,

>>asm
>>  mov  ax,002eh
>>  int  10h
>>end;

>>if 002eh doesn't work, just try values like 002fh and so on..
>>victor dods

>Bad advise. Playing randomly with video modes could at worst destroy the
>monitor. A proper solution is to find proper documentation.

These days, generally the most harm that can come from doing this is that
your system locks and reboots.  Most monitors anymore have circuitry that
keeps it from trying to sync at any rate outside its supported range, so
damage is unlikely.  Probably the only hardware that could be damaged by
this is anything really old, or systems that used fixed-frequency hardware.

Yes, looking at the documentation for the video card is probably one of the
best solutions.  Usually both VESA mode numbers (16-bit) and OEM mode
numbers (8-bit) should be listed.  VESA modes are standardized; OEM modes
vary from card to card.

If your card supports VESA (or if you've installed a driver such as UNIVBE),
you can still usually get the OEM mode number from memory:

asm
  mov   ax,4f02h
  mov   bx,0101h {VESA 640x480x256}
  int   10h
end;

OEM_mode := mem[$0040:$0049];

This byte usually contains the current 8-bit mode number on any properly
behaving video card.

Also, some good texts to read:

The VESA 1.2 specification.  There is also a version 2.0 specification
available, though in draft form.

VGADOC4B.ZIP.  A collection of text files on a wide range of different video
implementations.  Also includes some Turbo Pascal source.  I'm not sure if I
have the archive name correct, although I know that it's VGADOC4?.ZIP.

Quote
>Osmo

--
Scott F. Earnest           | We now return you to our regularly scheduled
sc...@whiplash.res.cmu.edu | chaos and mayhem. . . .

Re:HELP IN TP Programming


Quote
In article <4mfb21$...@kruuna.helsinki.fi> ronka...@cc.helsinki.fi (Osmo Ronkanen) writes:
>In article <3186ae15.5188...@news.why.net>, Henry Tang <T...@why.net> wrote:

>>I am fixing to make a text reader programing running under dos/v
>>(Japanese Dos)  If you know, Japanese Dos runs under a 640x480 pixel
>>screen; therefore normal text reader with the screen size of 80x25
>>characters  will not work under dos/v.  So, in order to make a dos/v
>>text reader I have to set up a TEXTMODE screen that is equvalent to
>>640 x 480 pixel screen. I am currently using TP 5.5 and it does not
>>have a text mode that suports 640x480, like VGA.
>I cannot parse the above. The VGA text modes are 640 x 400, not 640 x
>480.

Actually, the VGA text modes aren't 640x400, they're 720x400.

Quote
>>Is there a text mode
>>that goes beyond 80 x 25 characters? If so how is it accomplished?

There are all sorts of other text modes available.  Some that I've used are
80x28, 80x29, 80x35, 80x43, 80x50, 80x60, 132x25, 132x43, 132x50, and
132x60 -- and there may be others that I can't think of.  Some of these are
supported by the VESA BIOS, some are directly supported, and some are done
by tweaking the character generator.  Pick one and I can tell you how to get
it.

Quote
>What do you want exactly? Do you want a text mode that uses 480 scan
>lines instead of the normal 400 so that you can define a character set
>that you can use a font with 19 scan lines to get 80x25 display?

VGA doesn't have any 480-line text modes that I'm aware of, though I suppose
it might be possible by playing with the registers.  Standard VGA supports
200 scan lines (CGA compatibility), 350 scan lines (EGA compatibility), and
400 scan lines, selectable through the BIOS.

Quote
>Or do you want a normal text mode that has greater resolution than 80 x
>25?
>Osmo

--
Scott F. Earnest           | We now return you to our regularly scheduled
sc...@whiplash.res.cmu.edu | chaos and mayhem. . . .

Re:HELP IN TP Programming


Quote
Osmo Ronkanen (ronka...@cc.helsinki.fi) wrote:

: In article <mangledDqpF1E....@netcom.com>,
: Victor Dods <mang...@netcom.com> wrote:
: >
: >there is a way to get into 640x480x256,
: >
: >asm
: >  mov     ax,002eh
: >  int     10h
: >end;
: >
: >if 002eh doesn't work, just try values like 002fh and so on..
: >victor dods
: >

: Bad advise. Playing randomly with video modes could at worst destroy the
: monitor. A proper solution is to find proper documentation.

: Osmo

hmm.. well, when i did it, it went to 640x480x256.. i use 0013h (instead
of 002eh) for 320x200x256, and i use that quite a bit.. it's a great way
to do graphics without a bgi.

victor dods

Re:HELP IN TP Programming


Quote
In article <mangledDqwquu....@netcom.com> mang...@netcom.com (Victor Dods) writes:
>Osmo Ronkanen (ronka...@cc.helsinki.fi) wrote:
>: In article <mangledDqpF1E....@netcom.com>,
>: Victor Dods <mang...@netcom.com> wrote:
>: >
>: >there is a way to get into 640x480x256,
>: >
>: >asm
>: >  mov        ax,002eh
>: >  int        10h
>: >end;
>: >
>: >if 002eh doesn't work, just try values like 002fh and so on..
>: >victor dods
>: >
>: Bad advise. Playing randomly with video modes could at worst destroy the
>: monitor. A proper solution is to find proper documentation.
>: Osmo
>hmm.. well, when i did it, it went to 640x480x256.. i use 0013h (instead
>of 002eh) for 320x200x256, and i use that quite a bit.. it's a great way
>to do graphics without a bgi.

See my follow-up to this message you're replying to for more information as
to why this doesn't necessarily work.  Also, this is a good case that shows
what happens when enough t{*word*220} is done to lose context.  The original
poster needs a way to get a high enough resolution for text greater than the
normal 80x25.  Mode 13h is far too coarse for the application, and doesn't
approach a solution.

Quote
>victor dods

--
Scott F. Earnest           | We now return you to our regularly scheduled
sc...@whiplash.res.cmu.edu | chaos and mayhem. . . .

Other Threads