ASM Editor home Projects Docs Learn Blog
Donate
Star on github
AI Chat

M68K

Addressing Modes

Condition Codes

Shifts & directions

Trap tasks

Exceptions

Directives

Assembler features

abcd
add
adda
addi
addq
addx
and
andi
asd
asl
asr
bcc
bchg
bclr
bcs
beq
bge
bgt
bhi
bhs
ble
blo
bls
blt
bmi
bne
bpl
bra
bset
bsr
btst
bvc
bvs
chk
clr
cmp
cmpa
cmpi
cmpm
dbcc
dbcs
dbeq
dbf
dbge
dbgt
dbhi
dbhs
dble
dblo
dbls
dblt
dbmi
dbne
dbpl
dbra
dbt
dbvc
dbvs
divs
divu
eor
eori
exg
ext
extb
illegal
jmp
jsr
lea
link
lsd
lsl
lsr
move
movea
movem
movep
moveq
muls
mulu
nbcd
neg
negx
nop
not
or
ori
pea
rod
rol
ror
roxd
roxl
roxr
rtr
rts
sbcd
scc
scs
seq
sf
sge
sgt
shi
shs
sle
slo
sls
slt
smi
sne
spl
st
sub
suba
subi
subq
subx
svc
svs
swap
tas
trap
trapv
tst
unlk
Create your first project

bra

Branch always

Branches to the specified address unconditionally.

Sizes .b .s .w .l

Used in
  • Compare and branchM68K assembly
  • Loops and dbraM68K assembly
  • Arithmetic, logic and bitsM68K assembly
  • Arrays, strings and (a0)+M68K assembly
  • bsr, rts, link and unlkM68K assembly
  • The screen, keyboard and mouse through trapsM68K assembly
  • Exceptions and the vector tableM68K assembly
  • The bigger of two numbersM68K assembly
  • Length of a stringM68K assembly
  • Reverse a string in placeM68K assembly
XNZVC –––––
  • Changes no flag

Forms

  • bra

Operands

label
A branch target, written as a label or address. The assembler calculates the relative displacement. More
move.l #1, d0
bra skip
move.l #$DEAD, d0 ; never reached
skip:
    move.l #$FF, d11
2
3
4
5