Re: Adresses

new topic     » goto parent     » topic index » view thread      » older message » newer message

>  Please, I am a very beginner in programming with memory adresses of
> graphic mode 19, can anyone tell me where are the fre memory spaces that
> can be used to place , for example, a virtual screen? Please, if it isn't
> too much, send me the starting and ending adresses, it will be very
useful!

Why worry about memory locations when a much simpler solution would be to
maintain virtual pages inside sequence variables? All you have to do is
preformat the virtual page using the following structure required by
display_image():

{{0,0,0,0,0,....},
 {0,0,0,0,0,....},
 {0,0,0,0,0,....}}

where 0 represents a pixel colour at a position on the screen, and each
first-level element in this sequence is a row of pixels ({0,0,0,0,0,....}
for example)

When you need to display a screen, just pass the sequence containing screen
data to display_image() and voila! If you are only changing certain areas
of the screens often, you can keep smaller pages of virtual screen data in
the sequences.

David Gay
http://www.geocities.com/SiliconValley/Vista/4346
A Beginner's Guide To Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu