Albert (and others)

While thinking about the LAT/PORT issue for the 18Fs I had a look at the 
shadowing for the lower ranges. Take for example:

> procedure PORTA_high'put(byte in x) is
>    _PORTA_shadow = (_PORTA_shadow & 0x0F) | (x << 4)
>    _PORTA_flush()
> end procedure
> function PORTA_high'get() return byte is
>    return (PORTA >> 4)
> end function

Shouldn't the second line better be

  _PORTA_shadow = (PORTA & 0x0F) | (x << 4)

because the flush() writes the whole register, while only the higher 
part should really be changed.

BTW: The current construction in from Stef, so I have my doubts that I'm 
right!

Regards, Rob.

-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to