Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FrancoisSoft

Video Memory Offset

This topic is 5584 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Guest Anonymous Poster
first. how you can be using a 24 bpp mode and don''t know how is it the offset of graphics memory ??

second. if you are not programming for msdos or similar, you don''t need to deal with graphics memory offset.

Share this post


Link to post
Share on other sites
quote:

first. how you can be using a 24 bpp mode and don''t know how is it the offset of graphics memory ??


He''s probably working with C++ and directX/opengl.



-If you see this image I may or may not be online
My website

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
first. how you can be using a 24 bpp mode and don''t know where is it the offset of graphics memory ??

second. if you are not programming for msdos or similar, you don''t need to deal with graphics memory offset.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
FrancoisSoft, your website make me laught, so you are a company that sell console games of nintendo in eBay ? xD

Share this post


Link to post
Share on other sites
Well, from what I can recall, back in the days when I was programming Vesa on MS-DOS... the offset used to be 0xA000 for graphics mode. I think it was 0xB000/0xB800 in text mode.

That was real-mode and that was dos, where you still had direct hw access.

Any modern OS uses protected mode, and won''t give you direct hw-access that easily... I think you''re better of using a high level api or at least a driver or something, unless you want to do everything by hand.

Share this post


Link to post
Share on other sites
actually it''s a0000/b8000. a000/b800 is the segment address.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites
quote:
Original post by Wildfire
Any modern OS uses protected mode, and won''t give you direct hw-access that easily... I think you''re better of using a high level api or at least a driver or something, unless you want to do everything by hand.


DirectDraw, IMHO, handles this pretty elegantly.

Share this post


Link to post
Share on other sites
Whoops, yeah, those funny additional zeros that caused a lot of pain sometimes... dos addresses used do be 20 bits oO

Anyways, I think it's been what, 10 years? So I think my memory wasn't that bad... =D

quote:

DirectDraw, IMHO, handles this pretty elegantly.


Uhm, DirectDraw == API, or not? So, what's your point. If you're telling that DirectDraw has direct access... well, it's part of DirectX (~part of the OS more or less). I didn't say it's impossible to get direct hw access.

[edited by - Wildfire on August 7, 2003 3:47:47 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
in protected mode is lineal address 0xA0000, real mode 0xA000

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!