Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: VESA Modes
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 11 Topic 4577 of 4728
Post > Topic >>

Re: VESA Modes

by Frank Kotler <spamtrap@[EMAIL PROTECTED] > Mar 17, 2008 at 10:36 PM

Alex Buell wrote:
> Hello folks,
> 
> I'd like your thoughts on my first serious x86 assembly project; which
> lists all the modes available on a VESA compliant graphic adapter;
> runs on MSDOS. You can also change modes as well.
> 
> I originally wrote this utility as I needed more screen estate to be
> able to view more of my code on the display. I'm now using a 132x50
> display. Utter bliss!
> 
> I have made both the executables and sources freely available;
> http://www.munted.org.uk/programming/vmode.zip
> 
> Feedback is welcome. Also bug re****ts ;o)

Neat! I puzzled for a while over all the "+ OFFSET"s. The reason you 
need that cruft is that you haven't set ds (properly)! Unlike a .com 
file, an "MZ" .exe - 16-bit - *does* have "real segments", and the 
loader sets ds and es to your "PSP segment", not your "data" segment! 
You've set 'em to cs, which is apparently 100h bytes from your data 
segment. I suspect you're "lucky" this works. At the beginning of 
vmode.asm, instead of "mov ax, cs", try "mov ax, data". I think you'll 
find this works without all the "+ OFFSET" cruft. Or maybe there's a 
reason you're doing it this way?

I haven't tried this... pretty sure it won't work in dosemu. I'll reboot 
to dos and give it a shot... sometime soon...

Best,
Frank
 




 11 Posts in Topic:
VESA Modes
Alex Buell <spamtrap@  2008-03-17 20:17:16 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-17 22:36:15 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-17 23:40:04 
Re: VESA Modes
Terence <spamtrap@[EM  2008-03-17 15:28:04 
Re: VESA Modes
Dirk Wolfgang Glomp <  2008-03-18 07:43:50 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-18 18:09:56 
Re: VESA Modes
Dirk Wolfgang Glomp <  2008-03-19 00:14:01 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-18 14:39:02 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-19 08:46:31 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-19 15:41:34 
Re: VESA Modes
dirk <spamtrap@[EMAIL   2008-03-19 12:50:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:41:13 CDT 2008.