[PATCH] Add support for ATtiny4/5/9/10/20/40 microcontrollers

Barney Stratford barney_stratford@fastmail.fm
Sat Jun 14 19:04:00 GMT 2014


I’ve recently been working on getting the assembler and linker to work with the ATtiny40 family of microcontrollers. I’ve also added some functionality to the avr assembler in general. As this may be useful to others, I’m attaching my patches against the current git head. Can someone review and commit them please?

1_avrtiny10.patch contains the basic avrtiny10 code, including a linker reloc for the 16-bit version of the lds and sts instructions.

2_avr_io_relocs.patch allows you to refer to the I/O registers by symbol name.

3_avr_reg_name.patch allows you to refer to r26-r31 by name as /[xyz][hl]?/. It also fixes a bug that would prevent you from using a symbol whose name begins with ‘r’ to refer to a register.

Cheers,
Barney.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1_avrtiny10.patch
Type: application/octet-stream
Size: 47732 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140614/37b3086b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2_avr_io_relocs.patch
Type: application/octet-stream
Size: 6494 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140614/37b3086b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3_avr_reg_name.patch
Type: application/octet-stream
Size: 2458 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140614/37b3086b/attachment-0002.obj>


More information about the Binutils mailing list