Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

STS broken on ATtiny10 #215

Open
Open
@cpldcpu

Description

@cpldcpu

AVR-LLVM generates a 32 bit STS instruction on the ATtiny10, while only the 16 bit one is supported. Also, it appears that the memory map of the ATtiny10 is not implemented correctly.

I suppose this issue is similar to: #138

Example:

unsigned char global;
void test(void) {
    global=7;
}

Generated code:

   0:   87 e0           ldi r24, 0x07   ; 7
   2:   80 93 00 00     sts 0x0000, r24
   6:   08 95           ret

Probably a low priority issue, but this will break most programs on the avrtiny-core.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions