simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66044] core->dataAddressMask not applied correctly


From: Georg-Johann Lay
Subject: [bug #66044] core->dataAddressMask not applied correctly
Date: Mon, 30 Sep 2024 05:58:00 -0400 (EDT)

Follow-up Comment #1, bug #66044 (group simulavr):

Here is the respective clause from the "AVR Instruction Set Manual" at
https://ww1.microchip.com/downloads/en/DeviceDoc/AVR-InstructionSet-Manual-DS40002198.pdf

On page 87, section 6.66 LD - Load Indirect from Data Space to Register using
X:

6.66.1 Description
[...] Note that only the low byte of the X-pointer is updated
in devices with no more than 256 bytes of data space.
For such devices, the high byte of the pointer is not used
by this instruction and can be used for other purposes. [...]

Similar notes exist for the Y and Z registers.

The issue came up in an AVR-LibC test case, and there is also a proposed patch
for SimulAVR:
https://github.com/avrdudes/avr-libc/issues/954#issuecomment-2382476082



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?66044>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]