Searching \ for ' multibyte arithemetic' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=multibyte+arithemetic
Search entire site for: 'multibyte arithemetic'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] multibyte arithemetic'
2001\05\18@145619 by uter van ooijen & floortje hanneman

picon face
A looked into the uChip application note for fixed point (multibyte)
arithmetic. All code in there seems to ignore code page and register bank
issues. In some cases, such as the famous 4-instruction sequence for a
multibyte add or substract, this can be quite annoying. Are there any more
realistic sources for such code, or is it customary to first copy all data
so that it is all in one bank, and arrange the code so that is does not
straddle multiple pages?

Wouter

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\18@152550 by Dwayne Reid

flavicon
face
At 08:02 PM 5/18/01 +0200, wouter van ooijen & floortje hanneman wrote:
>A looked into the uChip application note for fixed point (multibyte)
>arithmetic. All code in there seems to ignore code page and register bank
>issues. In some cases, such as the famous 4-instruction sequence for a
>multibyte add or substract, this can be quite annoying. Are there any more
>realistic sources for such code, or is it customary to first copy all data
>so that it is all in one bank, and arrange the code so that is does not
>straddle multiple pages?

I suppose there is a problem if the RAM straddles 2 RAM pages, but you as
the programmer should have already caught that.  There is no problem with
the 4-instruction sequence for multi-byte add and subtract code crossing a
page boundary because there are no 'goto' instructions, merely skip
instructions which are not affected by page boundaries.

dwayne



Dwayne Reid   <spam_OUTdwaynerTakeThisOuTspamplanet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 17 years of Engineering Innovation (1984 - 2001)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\18@162412 by uter van ooijen & floortje hanneman

picon face
(again with [PIC]:)

> A looked into the uChip application note for fixed point (multibyte)
> arithmetic. All code in there seems to ignore code page and register bank
> issues. In some cases, such as the famous 4-instruction sequence for a
> multibyte add or substract, this can be quite annoying. Are there any more
> realistic sources for such code, or is it customary to first copy all data
> so that it is all in one bank, and arrange the code so that is does not
> straddle multiple pages?
>
> Wouter

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\19@105822 by Peter L. Peres

picon face
Wouter, I think that it makes sense to ensure that your code does not
cross page boundaries. The savings in wasted time and strange macros are
very large imho.

Peter

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...