PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ChatBot kennt alle AVR-Assembler Befehle



Frank
05.01.2004, 23:24
Hat jemand mal ne Liste von AVR-Befehlen mit kurzer Beschreibung (kein PDF-Format).
Ähnlicher Aufbau wie hier
http://www.wieselsworld-online.de/themen/listen/Mnemonics.htm
oder als einfache Textdatei.

Würde das gerne zum trainieren des Chatbot verwenden.

Gruß Frank

Kjion
05.01.2004, 23:42
Gibts doch in den AVR Datenblättern ganz hinten dran... das könnte man realtiv einfach rauskopieren...

MfG Kjion

Frank
06.01.2004, 00:11
Aber die liegen doch im PDF-FOrmat vor! Die kann man doch nicht richtig raus kopieren. Möchte ungerne alles nochmal abtippen müssen. Ich bräuchte es in reiner Textdateien, oder HTML Liste, Exelliste, Word-Liste, ASCII etc. Auch andere Inhalte könnte ich dem Bot einspeichern wenn ich geeignete Liste hätte.

Gruß Frank

Kjion
06.01.2004, 02:12
Na und ;) man kanns doch trotzdem rauskopieren...
für einen Atmega8 :

ADD Rd, Rr Add two Registers
ADC Rd, Rr Add with Carry two Registers
ADIW Rdl,K Add Immediate to Word
SUB Rd, Rr Subtract two Registers
SUBI Rd, K Subtract Constant from Register
SBC Rd, Rr Subtract with Carry two Registers
SBCI Rd, K Subtract with Carry Constant from
SBIW Rdl,K Subtract Immediate from Word
AND Rd, Rr Logical AND Registers
ANDI Rd, K Logical AND Register
OR Rd, Rr Logical OR Registers
ORI Rd, K Logical OR Register and Constant
EOR Rd, Rr Exclusive OR Registers
COM Rd One’s Complement
NEG Rd Two’s Complement
SBR Rd,K Set Bit(s) in Register
CBR Rd,K Clear Bit(s) in Register
INC Rd Increment
DEC Rd Decrement
TST Rd Test for Zero or Minus
CLR Rd Clear Register
SER Rd Set Register
MUL Rd, Rr Multiply Unsigned
MULS Rd, Rr Multiply Signed
MULSU Rd, Rr Multiply Signed with Unsigned
FMUL Rd, Rr Fractional Multiply Unsigned
FMULS Rd, Rr Fractional Multiply Signed
FMULSU Rd, Rr Fractional Multiply Signed with Unsigned
RJMP k Relative Jump
IJMP Indirect Jump to (Z)
JMP k Direct Jump
RCALL k Relative Subroutine Call
ICALL Indirect Call to (Z)
CALL k Direct Subroutine Call
RET Subroutine Return
RETI Interrupt Return
CPSE Rd,Rr Compare, Skip if Equal if (Rd = Rr)
CP Rd,Rr Compare
CPC Rd,Rr Compare with Carry
CPI Rd,K Compare Register with Immediate
SBRC Rr, b Skip if Bit in Register Cleared
SBRS Rr, b Skip if Bit in Register is Set
SBIC P, b Skip if Bit in I/O Register Cleared
SBIS P, b Skip if Bit in I/O Register is Set
BRBS s, k Branch if Status Flag Set
BRBC s, k Branch if Status Flag Cleared
BREQ k Branch if Equal
BRNE k Branch if Not Equal
BRCS k Branch if Carry Set
BRCC k Branch if Carry Cleared
BRSH k Branch if Same or Higher
BRLO k Branch if Lower
BRMI k Branch if Minus
BRPL k Branch if Plus
BRGE k Branch if Greater or Equal, Signed
BRLT k Branch if Less Than Zero, Signed
BRHS k Branch if Half Carry Flag Set
BRHC k Branch if Half Carry Flag Cleared
BRTS k Branch if T Flag Set
BRTC k Branch if T Flag Cleared
BRVS k Branch if Overflow Flag is Set
BRVC k Branch if Overflow Flag is Cleared
BRIE k Branch if Interrupt Enabled
BRID k Branch if Interrupt Disabled
MOV Rd, Rr Move Between Registers
MOVW Rd, Rr Copy Register Word
LDI Rd, K Load Immediate
LD Rd, X Load Indirect
LD Rd, X+ Load Indirect and Post-Inc.
LD Rd, - X Load Indirect and Pre-Dec.
LD Rd, Y Load Indirect
LD Rd, Y+ Load Indirect and Post-Inc.
LD Rd, - Y Load Indirect and Pre-Dec.
LDD Rd,Y+q Load Indirect with Displacement
LD Rd, Z Load Indirect
LD Rd, Z+ Load Indirect and Post-Inc.
LD Rd, -Z Load Indirect and Pre-Dec.
LDD Rd, Z+q Load Indirect with Displacement
LDS Rd, k Load Direct from SRAM
ST X, Rr Store Indirect
ST X+, Rr Store Indirect and Post-Inc.
ST - X, Rr Store Indirect and Pre-Dec.
ST Y, Rr Store Indirect
ST Y+, Rr Store Indirect and Post-Inc.
ST - Y, Rr Store Indirect and Pre-Dec.
STD Y+q,Rr Store Indirect with Displacement
ST Z, Rr Store Indirect
ST Z+, Rr Store Indirect and Post-Inc.
ST -Z, Rr Store Indirect and Pre-Dec.
STD Z+q,Rr Store Indirect with Displacement
STS k, Rr Store Direct to SRAM
LPM Load Program Memory
LPM Rd, Z Load Program Memory
LPM Rd, Z+ Load Program Memory and Post-Inc.
SPM Store Program Memory
IN Rd, P In Port
OUT P, Rr Out Port
PUSH Rr Push Register on Stack
POP Rd Pop Register from Stack
SBI P,b Set Bit in I/O Register
CBI P,b Clear Bit in I/O Register
LSL Rd Logical Shift Left
LSR Rd Logical Shift Right
ROL Rd Rotate Left Through Carry
ROR Rd Rotate Right Through Carry
ASR Rd Arithmetic Shift Right
SWAP Rd Swap Nibbles
BSET s Flag Set
BCLR s Flag Clear
BST Rr, b Bit Store from Register to T
BLD Rd, b Bit load from T to Register
SEC Set Carry
CLC Clear Carry
SEN Set Negative Flag
CLN Clear Negative Flag
SEZ Set Zero Flag
CLZ Clear Zero Flag
SEI Global Interrupt Enable
CLI Global Interrupt Disable
SES Set Signed Test Flag
CLS Clear Signed Test Flag
SEV Set Twos Complement Overflow
CLV Clear Twos Complement Overflow
SET Set T in SREG
CLT Clear T in SREG
SEH Set Half Carry Flag in SREG
CLH Clear Half Carry Flag in SREG
NOP No Operation
SLEEP Sleep (see specific descr. for Sleep function)
WDR Watchdog Reset (see specific descr. for WDR/timer)
BREAK Break For On-chip Debug Only

Frank
06.01.2004, 07:04
Staun! Danke. Wie kopierst Du denn aus einem PDF-Text? Normalerweise hat man damit kein großes Glück.

Frank
06.01.2004, 07:43
So, der Chatbot kennt nun alle Befehle und kann ausgefragt werden!