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

STS broken on ATtiny10 #215

Open
cpldcpu opened this issue Jul 17, 2016 · 0 comments
Open

STS broken on ATtiny10 #215

cpldcpu opened this issue Jul 17, 2016 · 0 comments

Comments

@cpldcpu
Copy link

cpldcpu commented Jul 17, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants