This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: 1_avrtiny10.patch
Description: Binary data

Attachment: 2_avr_io_relocs.patch
Description: Binary data

Attachment: 3_avr_reg_name.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]