[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hires calculations
- Subject: Re: Hires calculations
- From: Mike Pfaiffer <pfaiffer@mbnet.mb.ca>
- Date: 1999/05/03
- Newsgroups: comp.sys.apple2
- Organization: Network 23
- References: <7gigif$gtu$1@nnrp1.dejanews.com>
bobryan9@my-dejanews.com wrote:
>
> How do I calculate the MEMORY LOCATION of a byte on the LEFT SIDE of the
> Hires screen, given the Y location?
>
> I would like something like:
>
> MEMLOC=Y (insert math here)
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Your best bet would be to use a lookup table. It is a lot faster. From
there your only calculations would be the horizontal offset of the pixel
you wanted. The memory it takes is marginally larger than the
calculation method but from what I've heard the results are worth it.
Later
Mike
--
+------------------------------------------------------------------------+
|Lifes the same I'm moving in stereo. Lifes the same except for my
shoes.|
| -The Cars 1978 |
+------------------------------------------------------------------------+
| http://www.mbnet.mb.ca/~pfaiffer = Mike Pfaiffer (B.A., B.Sc.)
|
| See my web page before you think about spamming me. I charge cash.
|
+------------------------------------------------------------------------+