Is there an updated instruction set document lurking around the Atmel site that I just can't find?
A document that contains the new xmega opcodes.
Updated doc of instruction set?
Atmel's 8-Bit Instruction Set document doc8056.pdf, currently Rev H, has included XMEGA device support since Rev F of May 2008.
The change occuring in rev F is: – Updated AVR Instruction Set with XMEGA Clock cycles and Instruction Description.
There is no special instruction set for the XMEGA. The XMEGA A MANUAL and each XMEGA device datasheet appear to include an instruction set summary.
The only instruction that seems to stand out in the XMEGA instruction summary is DES – Data Encryption Standard.
Stan
MBedder discovered some and posted about it.
https://www.avrfreaks.net/index.p...
Also avr-gcc generates code that uses them (atleast the LAT instruction).
The AVR Instruction Set doc0856.pdf has been updated to Rev I.
Rev.0856I – 07/101. Updated “Complete Instruction Set Summary†on page 11 with new instructions: LAC, LAS, LAT and XCH.
- “LAC – Load And Clear†on page 84
- “LAS – Load And Set†on page 85
- “LAT – Load And Toggle†on page 86
- “XCH – Exchange†on page 1572. Updated number of clock cycles column to include Reduced Core tinyAVR.
- (ATtiny replaced by Reduced Core tinyAVR).
Stan
I updated AVR Studio to 4.18 SP2 (b700) and these instructions are not highlighted in assembler. There is a way to add these keywords manually in order to be highlighted ? The same question would apply for custom macros.
Another question, which AVR part support these new instructions ?
And another question, when / where are these instructions useful since the document not tell much about it ?
George.
There is a way to add these keywords manually in order to be highlighted ? The same question would apply for custom macros.
See the format of:
\Program Files\Atmel\AVR Tools\AvrStudio4\edit\AvrStudio_asm.ini
Currently the file ends:
CLZ = Keyword SEI = Keyword CLI = Keyword SES = Keyword CLN = Keyword SEV = Keyword CLV = Keyword SET = Keyword CLT = Keyword SEH = Keyword CLH = Keyword NOP = Keyword SLEEP = Keyword STD = Keyword WDR = Keyword BREAK = Keyword CLS = Keyword EIJMP = Keyword EICALL = Keyword
just add new entries to the end of this.
Awesome, thank you.
George.