學習和研究彙編語言/IDA/Linux時,您可能會需要相關知識.
以下是m68k的彙編指令集
-----------------------------------------------------
Moto ROLa 68000 Instruction Set.
-------------------------------
Condition Codes
---------------
assembler Data
Instruction Description Syntax Size X N Z V C
----------------------- --------- ---- ---------
ABCD Add BCD with extend Dx,Dy B-- * U * U *
-(Ax),-(Ay)
ADD ADD binary Dn, BWL * * * * *
,Dn
adda ADD binary to An ,An -WL - - - - -
ADDI ADD Immediate #x, BWL * * * * *
ADDQ ADD 3-bit immediate #, BWL * * * * *
ADDX ADD eXtended Dy,Dx BWL * * * * *
-(Ay),-(Ax)
AND Bit-wise AND ,Dn BWL - * * 0 0
Dn,
ANDi Bit-wise AND with Immediate # , BWL - * * 0 0
ASL Arithmetic Shift Left #,Dy BWL * * * * *
Dx,Dy
ASR Arithmetic Shift Right ... BWL * * * * *
bcc Conditional Branch Bcc.S BW- - - - - -
Bcc.W
BCHG Test a Bit and CHanGe Dn, B-L - - * - -
# ,
BCLR Test a Bit and CLeaR ... B-L - - * - -
BSET Test a Bit and SET ... B-L - - * - -
BSR Branch to subroutine BSR.S BW- - - - - -
BSR.W
BTST Bit TeST Dn, B-L - - * - -
# ,
CHK CHecK Dn Against Bounds ,Dn -W- - * U U U
CLR CLeaR BWL - 0 1 0 0
CMP CoMPare ,Dn BWL - * * * *
CMPA CoMPare Address ,An -WL - * * * *
CMPI CoMPare Immediate # , BWL - * * * *
cmpm CoMPare Memory (Ay)+,(Ax)+ BWL - * * * *
DBCC looping Instruction DBcc Dn, -W- - - - - -
DIVS DIVide Signed ,Dn -W- - * * * 0
DIVU DIVide Unsigned ,Dn -W- - * * * 0
EOR Exclusive OR Dn, BWL - * * 0 0
EORI Exclusive OR Immediate # , BWL - * * 0 0
EXG Exchange any two registers Rx,Ry --L - - - - -
EXT Sign EXTend Dn -WL - * * 0 0
ILLEGAL ILLEGAL-Instruction Exception ILLEGAL - - - - -
JMP JuMP to Affective Address - - - - -
JSR Jump to SubRoutine - - - - -
LEA Load Effective Address ,An --L - - - - -
LINK allocate Stack Frame An,# - - - - -
LSL Logical Shift Left Dx,Dy BWL * * * 0 *
#,Dy
LSR Logical Shift Right ... BWL * * * 0 *
MOVE Between Effective Addresses , BWL - * * 0 0
MOVE To CCR ,CCR -W- I I I I I
MOVE To SR ,SR -W- I I I I I
MOVE From SR SR, -W- - - - - -
MOVE USP to/from Address Register USP,An --L - - - - -
An,USP
MOVEA MOVE Address ,An -WL - - - - -
MOVEM MOVE Multiple , -WL - - - - -
,
---------- Page 2. CUT HERE. ----------
MOVEP MOVE Peripheral Dn,x(An) -WL - - - - -
x(An),Dn
MOVEQ MOVE 8-bit immediate #,Dn --L - * * 0 0
MULS MULtiply Signed ,Dn -W- - * * 0 0
MULU MULtiply Unsigned ,Dn -W- - * * 0 0
NBCD Negate BCD B-- * U * U *
NEG NEGate BWL * * * * *
NEGX NEGate with eXtend BWL * * * * *
NOP No OPeration NOP - - - - -
NOT Form one's complement BWL - * * 0 0
OR Bit-wise OR ,Dn BWL - * * 0 0
Dn,
ORI Bit-wise OR with Immediate # , BWL - * * 0 0
PEA Push Effective Address --L - - - - -
RESET RESET all external devices RESET - - - - -
ROL ROtate Left #,Dy BWL - * * 0 *
Dx,Dy
ROR ROtate Right ... BWL - * * 0 *
ROXL ROtate Left with eXtend ... BWL * * * 0 *
ROXR ROtate Right with eXtend ... BWL * * * 0 *
RTE ReTurn from Exception RTE I I I I I
RTR ReTurn and Restore RTR I I I I I
RTS ReTurn from Subroutine RTS - - - - -
SBCD Subtract BCD with eXtend Dx,Dy B-- * U * U *
-(Ax),-(Ay)
Scc Set to -1 if True, 0 if False B-- - - - - -
STOP Enable & wait for interrupts # I I I I I
SUB SUBtract binary Dn, BWL * * * * *
,Dn
SUBA SUBtract binary from An ,An -WL - - - - -
SUBI SUBtract Immediate #x, BWL * * * * *
SUBQ SUBtract 3-bit immediate # , BWL * * * * *
SUBX SUBtract eXtended Dy,Dx BWL * * * * *
-(Ay),-(Ax)
SWAP SWAP words of Dn Dn -W- - * * 0 0
TAS Test & Set MSB & Set N/Z-bits B-- - * * 0 0
TRAP Execute TRAP Exception # - - - - -
TRAPV TRAPV Exception if V-bit Set TRAPV - - - - -
TST TeST for negative or zero BWL - * * 0 0
UNLK Deallocate Stack Frame An - - - - -
--------------------------
Symbol Meaning
------ -------
* Set according to result of operation
- Not affected
0 Cleared
1 Set
U Outcome (state after operation) undefined
I Set by immediate data
Effective Address Operand
Immediate data
Assembler label
TRAP instruction Exception vector (0-15)
MOVEM instruction register specification list
LINK instruction negative displacement
... Same as previous instruction
--------------------------
---------- Page 3. CUT HERE. ----------
Addressing Modes Syntax
---------------- ------
Data Register Direct Dn
Address Register Direct An
Address Register Indirect (An)
Address Register Indirect with Post- increment (An)+
Address Register Indirect with Pre- decrement -(An)
Address Register Indirect with Displacement w(An)
Address Register Indirect with Index b(An,Rx)
Absolute Short w
Absolute Long l
Program Counter with Displacement w(PC)
Program Counter with Index b(PC,Rx)
Immediate #x
Status Register SR
Condition Code Register CCR
Legend
------
Dn Data Register (n is 0-7)
An Address Register (n is 0-7)
b 08-bit constant
w 16-bit constant
l 32-bit constant
x 8-, 16-, 32-bit constant
Rx Index Register Specification, one of:
Dn.W Low 16 bits of Data Register
Dn.L All 32 bits of Data Register
An.W Low 16 bits of Address Register
An.L All 32 bits of Address Register
--------------------------
Condition Codes for Bcc, DBcc and Scc Instructions.
---------------------------------------------------
Condition Codes set after CMP D0,D1 Instruction.
Relationship Unsigned Signed
------------ -------- ------
D1 < D0 CS - Carry Bit Set LT - Less Than
D1 D0 HI - HIgher than GT - Greater Than
D1 >= D0 CC - Carry Bit Clear GE - Greater than or Equal
PL - PLus (N-bit Clear) MI - Minus (N-bit Set)
VC - V-bit Clear (No Overflow) VS - V-bit Set (Overflow)
RA - BRanch Always
DBcc Only - F - Never Terminate (DBRA is an alternate to DBF)
T - Always Terminate
Scc Only - SF - Never Set
ST - Always Set
--------------------------
Parts from "Programming the 68000" by Steve Williams. (c) 1985 Sybex Inc.
Parts from BYTE Magazine article.
Compiled by Diego Barros. e-mail : [email protected]
Revision 2.1 22 May, 1994
---------- Last Page. CUT HERE. ----------
相關詞條
-
m68k
m68k是摩托羅拉的68000型cpu。
-
硬體工程師
類型5) ;數據通信與電信領域主流CPU:M68k系列...) ;電信與數據通信領域主流CPU(M68k,PowerPC...
工作任務 職業定義 職業特質 從業要求 職業類別 -
coldfire
是Freescale(原Motorola公司半導體產品部)公司在m68k基礎上開發的微處理器晶片。ColdFire系列晶片不僅具有片內Cache、MAC及SDRAM控制器等微處理器的特徵,同時片內還具有各種接口...
-
ColdFire單片機
ColdFire是Freescale(原Motorola公司半導體產品部)公司在M68K基礎上開發的微處理器晶片。ColdFire系列晶片不僅具有片內Cache、MAC及SDRAM控制器等微處理器的特徵,同時片內...
-
字母編址
、m68k等採用統一編址,而X86等則採用獨立編址,存在I/O空間的概念...
地址概述 編址方式 套用 -
xmame
,i386,alpha,ia64 (merced),m68k,一般的RISC...
-
嵌入式軟體調試技術
BDM·M68K系列及PowerPC等採用的技術1.5.4 JTAG...
嵌入式軟體調試技術 內容簡介 讀者對象 目錄 -
MiniGUI
SoCs、IA-based SoCs、PowerPC、M68K...
簡介 特點優勢 運行模式 軟體架構 -
openmoko
、MIPS、m68k、與SH-4處理器的open source 軟體。簡...
項目簡介 開發環境 項目套用