Forum: Mikrocontroller und Digitale Elektronik Bedingte Sprünge

Announcement: there is an English version of this forum on EmbDev.net. Posts you create there will be displayed on Mikrocontroller.net and EmbDev.net.
Autor: Sencer Soylu (Gast)

0 lesenswert
nicht lesenswert
Guten Tag,
gibt es in Assembler(AVR-Studio) bedingte sprünge?
Also: Varible1 ungleich Variable2 = soll er wieder zu einer markierten
stelle zurückspringen!

[Springbefehl] [Variable1],[Varibale2],[markierung]

Autor: log (Gast)

0 lesenswert
nicht lesenswert

Autor: Sencer Soylu (Gast)

0 lesenswert
nicht lesenswert
Habe eine Befehl gefunden!
Ich weiss nich was Sie mit rtfm meinen, mein AVR erkennt es nicht!
Aber habe jetzt ein Befehl!

Autor: OldBug (Gast)

0 lesenswert
nicht lesenswert
RTFM == Read Those Fine Manuals

Mit anderen Worten: steht im Datenblatt!

Autor: Sencer Soylu (Gast)

0 lesenswert
nicht lesenswert
aha, ok

Autor: Peter Dannegger (peda)

0 lesenswert
nicht lesenswert
Es gibt nicht nur einen Befehl.
Die CP**, die SUB** und EOR setzen zum Vergleich Flags, die man dann
mit den BR** auswerten kann.


Autor: Martin S. (Gast)

0 lesenswert
nicht lesenswert
"Ich weiss nich was Sie mit rtfm meinen, mein AVR erkennt es nicht!

Hier sind noch ein paar mehr Assemblerbefehle, die der AVR
möglicherweise nicht erkennt g

IBM Model 3090/69 Features & Assembler Language Commands

AAAH           Add And Automatically Halt
AARTZ          Add And Reset To Zero
ABC            Abdicate Basic Compiler
ACM            Automatically Clear Memory
ADN            Ad Nauseam
ADN            Add Naseum
AIM            Add Improper
BAH            Branch And Hang
BBBAB          Bite Baudy Bit And Branch
BBC            Branch Before Compare
BBT            Branch on Binary Tree
BBW            Branch Both Ways
BCEGR          Branch on CE Ground
BEW            Branch Either Way
BH             Branch and Hang
BKCRDR         Backspace Card Reader
BKSPD          Backspace Disk
BKTPR          Break Tape Reverse
BLMNF          BLow MaiN Fuse
BLPIN          Branch and LooP INdefinite
BMR            Branch Multiple Registers
BNEV           Branch NEVer
BOB            Branch On Bug
BOBI           Branch On Blinking Indicator
BOBOI          Branch On Burned-Out Indicator
BOC            Branch OCcasionally
BOCBF          Branch On Chip-Box Full
BOD            Beat On Drum
BOI            Byte Operator Immediately
BOPLT          Burn Out Pilot LighTs
BOPO           Branch On Power Off
BOSO           Branch On Sleepy Operator
BOV            Burn Out Vdu
BOXMS          Branch On Index Missing
BPDI           Be Polite, Don't Interrupt
BPE            Bypass Program Error
BPECK          ByPass Error ChecK
BPO            Branch on Power Off
BRPCB          BuRP and Clear Bytes
BRST           BRanch SomeTimes
BSCH           Burst Select CHannel
BST            Backspace and Stretch Tape
BYCRE          BYpass CoRE
BYTRN          BYTe and RuN
CBS            Crash Bothersome Source-code
CCS            Chinese Character Set
CDHI           Crash Disk Head Immediate
CEMU           Close Eyes and Monkey with User space
CIRM           Circulate Memory
CLBR           CLobber ReGister
CLBRI          CLobber ReGister Immediately
CM             Circulate Memory
CMBG           Create Machine Bug
CNFM           Confuse Memory
CNFOP          Confuse Operator
CPPR           Crumple Printer Paper and Rip
CRB            CRash and Burn
CRDT           CReate Data
CTRNS          Convert To Roman Numerals
CU             Convert to Unary
CVUME          Cover Up Machine Errors
CZZC           Convert Zone to Zip Code
DABCM          Digit And Branch Converter Modifier
DAC            Divide And Conquer
DAMIT          Transfer Control to Perdition
DAO            Divide And Overflow
DC             divide and conquer
DCTCB          Dump Core To Chad Box
DDMWH          Dump Dim Map of Western Hemisphere
DESSPK         Destroy Storage Protect Key
DEVIA          Develop Ineffective Address
DITCK          Drop Into Check
DLTCR          Delete Core
DMC            Destroy Memory Chip
DMNS           Do what I Mean, Not what I Say
DMPK           Destroy Memory Protect Key
DNPG           Do Not Pass Go
DO             Divide and Overflow
DRPBTS         Drop Bits
DSTME          Destroy Memory
ECL            Early Card Lace
EDPMAB         Electrocute DP Manager And Branch
EIOC           Execute Invalid OpCode
EJCAB          Eject Chad Box
EJD            Eject Disk
EMPC           EMulate Pocket Calculator
EMU407         407 Emulation
EPE            Execute Program Error
EPI            Execute Programmer Immediately
EPMAS          Erase Protected Memory Areas
ERCDP          Erase Card Punch
ERCDS          Erase Cards
EROS           Erase Read-Only Storage
ERPTW          Erase Print Wheel
ERROS          Erase Read Only Storage
ETCRD          Eat Card
EXIOC          Execute Invalid Op Code
EXOP           Execute Operator
EXPP           EXecute Political Prisoner
FDCDJ          Feed Card and Jam
FSKPRW         Forms Skip and Run Away
GFD            Go Forth and Divide
GFM            Go Forth and Multiply
GLPSB          Gulp and Store Bytes
GPAER          Generate Parity Error
HCF            Halt and Catch Fire  **  PRIVILEGED OPERATION  **
HCFC           Branch Before Compare
HCFR           Halt and Catch FiRe  **  PRIVILEGED OPERATION  **
HDLF           Hurl Disc Like Frisbee
IAI            Inquire And Ignore
IBP            Insert Bug and Proceed
IFKTR          Initiate Fake-out Routine
IGSPC          Ignore Supervisor Call
IIAH           Ignore Interrupt And Hang
IIB            Ignore Inquiry and Branch
IKC            Ignore Keyboard and Crash
ILLAND         Illogical AND
ILLOR          Illogical OR
ILPS           Invert Logical Power Supply
INC1401        1401 INCompatibility
INVRB          Invert Record and Branch
IOCSM          Input/Output Conversely Synchronized to Matrix
ITLKC          Interlock Core
JMKYP          Jam Keypunches
JMPNC          Punch
JRA            Jump to Random Address
JSRLR          Jump to SubRoutine and Lose return Address
LCC            Load and Clear Core
LGOWY          Load and Go Away
LMBR           Lose Message and Branch
LPCON          Loop Continuous
LUPGA          Loop Until Programmer Goes Away (in desperation)
MBF            Multiply and Be Fruitful
MDRBT          Move and Drop Bits
MKTIV          Make Tape Invalid
MLR            Move and Lose Record
MVCON          Move Continuous
MVLR           Move and Lose Record
MVWRC          Move and Wrap Core
NBC            Negate By Clearing
OOOH           Or Only On Half-hours
PBC            Print and Break Chain
PBS            Pop Before Stacking
PCHD           Punch Disk
PCHOP          Punch Operator
PD             Play Dead
PDKBN          Punch Disk Binary
PDOSI          Play Des O'Connor Song Immediate
PDSK           Punch Disk
PINV           Punch Invalid
POF            Print On Fly
POPI           Punch OPerator Immediately
PRANB          Pick up Random Bits
PRSMR          Print and Smear
PS*            Punch obscenity
PSD            Pause and Smoke Dope
PSP            Print and Shred Paper
PVLC           Punch Variable Length Card
RBAFG          Read Binary And Forget
RCDRD          Rewind Card Reader
RCDSCD         Read Card and Scramble Data
RCTKG          Read Count Key and Garbage
RD             Reverse Directions
RDBGG          Random Bug Generator  ** SPECIAL FEATURE **
RDBR           Read Bad Record
RDCBX          Read Chad Box
RDCHS          Read Chaos
RDIOST         Read-In Only Storage  ** SPECIAL FEATURE **
RDIRG          Read Inter Record Gap
RDNOR          Read Noise Record
RDS            ReaD Sideways
REDTH          Reduce Throughput
REIMT          Reinitialize Meter
REPAB          Reverse Parity And Branch
REWFR          Rewind Forward
RINV           Read Invalid
RIODNR         Rotate Input/Output Device Numbers Randomly
RIRG           Read Inter-Record Gap
RNR            Rather Not Run
ROLPR          Rewind On-Line Printer
RPBL           Read Print and Blush
RPI            Reverse Priority of Interrupts
RPLT           Read from Plotter
RPM            Read Programmer's Mind
RPTR           Read from Printer
RRR            Rotate Right Randomly
RSC            Read and Shred Card
RSD            on Read error Self Destruct
RSPP           Randomly Shred Printer Paper
RSTOM          Read from STore-Only Memory
RVDOD          Reverse Drum Or Disk
RVDRI          Reverse Drum Immediate
RWBKT          Rewind and Break Tape
RWCR           Rewind Card Reader
RWDSK          Rewind Disk
RWTOD          Rewind Tape Onto Disk
RWWRT          Read and Write While Ripping Tape
SADP           Stop And Demand Payrise
SARTZ          Subtract And Reset To Zero
SCCHS          Scramble Channels
SCDTA          Scatter Data
SCMRY          Scatter Memory
SCPR           Scatter Print
SCPSW          Scatter Program Status Word
SDI            Scratch Disc Immediate
SHAB           SHift A Bit
SHLBM          SHift a Little Bit More
SHLPN          SHarpen Light PeNcil
SKRSD          Seek Record and Scar Disk
SLD            Slip Disk
SMR            Skip on Meaningless Result
SMTACS         Shift Manual To Automatic and Check Stop
SOSAJ          Select Output Stacker And Jam
SOT            Sit On a Tack
SPRDK          Shuffle Program Deck
SPSW           Scramble Program Status Word
SPT            Scramble Protected Tapes
SQPC           Sit Quietly and Play with your Crayons
SRSD           Seek Record and Scar Disk
SRZ            Subtract and Reset to Zero
SSJ            Select Stacker and Jam
SST            Stop and Stretch Tape
STAB           Switch To Alternate Bedlam
STDR           Stop and Demand a Rest
STROM          STore in Read-Only Memory
STSLD          Stacker Select Disk
STTPB          Stretch Tape Binary
STUP           Stacker Upset
TADBT          Transfer And Drop Bits
TCLSR          Transfer Control and Lose Return
TCTDK          Transfer Control To Disk
TCTOL          Transfer Control To Overhead Lights
TCTPL          Transfer Control To Pilot Lights
TCTWS          Transfer Control To Wall Socket
TDB            Transfer and Drop Bits
TMTDK          Transfer Monitor To Disk
TPDEC          Triple Pack Decimal
TRAHG          Transfer And Hang
TRDB           Transfer And Drop Bits
TRSCH          Trap Secretary and Halt
UER            Update and Erase Record
UINDA          Use Inverse Digital Array
UNCPB          Uncouple CPUs and Branch
UPERR          Update and Erase Record
UPTR           Update Transaction
WBI            Water BInary tree
WCDR           Write CD-ROM
WCTKG          Write Count Key and Garbage
WEMG           Write Eighteen Minute Gap
WMTAE          Write Memory , Transfer, And Erase
WNOSR          Write Noise Record
WPM            Write Programmer's Mind
WRR            Write Random Record
WWRLR          Write Wrong Length Record
XMAS           eXclusive OR Main Areas of Storage
XSP            eXecute Systems Programmer
ZIPCD          Address of Memory .  Zip Code = 85281
ZIPEX          Address by Nine-Digit Zipcode


Jokes Magazine Amusing Opcodes September 5, 2001

BNE - Branch to Non-Existent code
BNR - Branch for No Reason.
BRA - Branch to Random Address
BVS - Branch to Virtual Subroutine
CLD - CalL a Doctor
CMD - Create Meaningless Data.
DEC - DElete the Code
DRA - Decrement Random Address.
EDR - Emit Deadly Radiation.
JMP - Jump if Memory Present (conditional jump)
LLI - Lose Last Instruction.
PRS - Push Results off Stack.
RIS - Remain In Subroutine.
RTI - Return from the Infinity
SHB - Scramble High order Bit.
TEC - Take Extra time for Calculation

Autor: Ingo Henze (Gast)

0 lesenswert
nicht lesenswert
Nicht zu vergessen auch INC, DEC, AND und OR

Autor: OldBug (Gast)

0 lesenswert
nicht lesenswert

Autor: Ingo Henze (Gast)

0 lesenswert
nicht lesenswert
Wobei ich zugeben muß, daß ich bei meine ersten Gehversuchen mit AVRs
auch zunächst nach den Sprungbefehlen (und nicht Verzweigungen) gesucht
Ich kannte nur die Sachen vom x86 und Z80, da sind das ja immer Sprünge
wie JRC, JNZ, JE usw.

Autor: Sencer Soylu (Gast)

0 lesenswert
nicht lesenswert
es funktioniert!

Antwort schreiben

Die Angabe einer E-Mail-Adresse ist freiwillig. Wenn Sie automatisch per E-Mail über Antworten auf Ihren Beitrag informiert werden möchten, melden Sie sich bitte an.

Wichtige Regeln - erst lesen, dann posten!

  • Groß- und Kleinschreibung verwenden
  • Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang

Formatierung (mehr Informationen...)

  • [c]C-Code[/c]
  • [avrasm]AVR-Assembler-Code[/avrasm]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] - Link zu Artikel
  • Verweis auf anderen Beitrag einfügen: Rechtsklick auf Beitragstitel,
    "Adresse kopieren", und in den Text einfügen

Bild automatisch verkleinern, falls nötig
Bitte das JPG-Format nur für Fotos und Scans verwenden!
Zeichnungen und Screenshots im PNG- oder
GIF-Format hochladen. Siehe Bildformate.
Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt.
Bitte hier nur auf die ursprüngliche Frage antworten,
für neue Fragen einen neuen Beitrag erstellen.

Mit dem Abschicken bestätigst du, die Nutzungsbedingungen anzuerkennen.