80x50 video mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Tux

80x50 video mode

Post by Tux »

I just want if this *mode* is new or already done.
Don't tell me to enter 320x240 and then just use 80x50 of it. I need to know if there is anyone that knows how to enter 80x50 mode?

I already got it, but I want to see how many people think like me :)
Tux

Re:80x50 video mode

Post by Tux »

Hmm, many already did do 80x50. But not the way I did it :)
Tux

Re:80x50 video mode

Post by Tux »

http://www.osdever.net/forums/viewtopic.php?t=182 is the source to the mode hack. I would like opinions on it. It is very useful in that it is fast and easy to setup. I use it for my GUI engine testing.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:80x50 video mode

Post by df »

i like 80x28 and 80x43, tho i like 80x28 more than 80x43 and i dont much like 80x50.

:)
-- Stu --
Tux

Re:80x50 video mode

Post by Tux »

Mode 80x50 (hack) is made by taking 80x25, and using ? (0xDC) which is a small box. The box represents the bottom pixel, and the background color represents the top pixel. Thus, making the illusion that there are 50 pixels top to bottom. (Actually there are 50 pixels, but it's gained by a trick)
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:80x50 video mode

Post by df »

i fail to see the point of a '80x50 graphic' mode where you use text blocks to simulate an 80x50 pixel display??
-- Stu --
Tux

Re:80x50 video mode

Post by Tux »

Yeah, but on Boch's it goes faster when using text instead of actual VGA. No idea why :/
Tim

Re:80x50 video mode

Post by Tim »

Why not use 320x200x8? Or 640x480x4?
Chris Giese

Re:80x50 video mode

Post by Chris Giese »

Tux wrote: Mode 80x50 (hack) is made by taking 80x25, and using ? (0xDC) which is a small box. The box represents the bottom pixel, and the background color represents the top pixel. Thus, making the illusion that there are 50 pixels top to bottom. (Actually there are 50 pixels, but it's gained by a trick)
Must be something like this? http://my.execpc.com/~geezer/temp/chunky.gif

source code: http://my.execpc.com/~geezer/temp/chunky.c
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:80x50 video mode

Post by Pype.Clicker »

Tux wrote: Yeah, but on Boch's it goes faster when using text instead of actual VGA. No idea why :/
try to guess ! to fill the same region, you need more emulated instructions in 320x200 than with 80x25 text mode. The job of filling the characters is done by native code rather than by emulating your GUI code ...
Post Reply