Skip to content

Processing of CLR and EOR instructions...... #6

@LKevinWang

Description

@LKevinWang

In application it comes out that instruction word 0x24-0x11 (16'b0010010000010001) could be recognized as CLR R17.
However, if we introduce this word into EOR insttruction to translate, we can have a line as EOR r1, r1, what's equivalent to CLR R1.

In fact as I've communnicated with FAE of ATMega, and referred to the MANUAL of AVR ISC, the second type of translation is true. I.e., the code structure of CLR is like (refer to 5.39 and 5.54 sections of manual):
0010 01dd dddd dddd
is in fact:
0010 01d4d4 d3d2d1d0 d3d2d1d0.

Branch that fixed this bug is still on my going....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions