分享
 
 
 

m68k

王朝百科·作者佚名  2010-03-11
窄屏简体版  字體: |||超大  

m68k是摩托罗拉的68000型cpu

学习和研究汇编语言/IDA/Linux时,您可能会需要相关知识.

以下是m68k的汇编指令集

-----------------------------------------------------

Motorola 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,<ea> BWL * * * * *

<ea>,Dn

ADDA ADD binary to An <ea>,An -WL - - - - -

ADDI ADD Immediate #x,<ea> BWL * * * * *

ADDQ ADD 3-bit immediate #<1-8>,<ea> BWL * * * * *

ADDX ADD eXtended Dy,Dx BWL * * * * *

-(Ay),-(Ax)

AND Bit-wise AND <ea>,Dn BWL - * * 0 0

Dn,<ea>

ANDI Bit-wise AND with Immediate #<data>,<ea> BWL - * * 0 0

ASL Arithmetic Shift Left #<1-8>,Dy BWL * * * * *

Dx,Dy

<ea>

ASR Arithmetic Shift Right ... BWL * * * * *

Bcc Conditional Branch Bcc.S <label> BW- - - - - -

Bcc.W <label>

BCHG Test a Bit and CHanGe Dn,<ea> B-L - - * - -

#<data>,<ea>

BCLR Test a Bit and CLeaR ... B-L - - * - -

BSET Test a Bit and SET ... B-L - - * - -

BSR Branch to SubRoutine BSR.S <label> BW- - - - - -

BSR.W <label>

BTST Bit TeST Dn,<ea> B-L - - * - -

#<data>,<ea>

CHK CHecK Dn Against Bounds <ea>,Dn -W- - * U U U

CLR CLeaR <ea> BWL - 0 1 0 0

CMP CoMPare <ea>,Dn BWL - * * * *

CMPA CoMPare Address <ea>,An -WL - * * * *

CMPI CoMPare Immediate #<data>,<ea> BWL - * * * *

CMPM CoMPare Memory (Ay)+,(Ax)+ BWL - * * * *

DBcc Looping Instruction DBcc Dn,<label> -W- - - - - -

DIVS DIVide Signed <ea>,Dn -W- - * * * 0

DIVU DIVide Unsigned <ea>,Dn -W- - * * * 0

EOR Exclusive OR Dn,<ea> BWL - * * 0 0

EORI Exclusive OR Immediate #<data>,<ea> 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 <ea> - - - - -

JSR Jump to SubRoutine <ea> - - - - -

LEA Load Effective Address <ea>,An --L - - - - -

LINK Allocate Stack Frame An,#<displacement> - - - - -

LSL Logical Shift Left Dx,Dy BWL * * * 0 *

#<1-8>,Dy

<ea>

LSR Logical Shift Right ... BWL * * * 0 *

MOVE Between Effective Addresses <ea>,<ea> BWL - * * 0 0

MOVE To CCR <ea>,CCR -W- I I I I I

MOVE To SR <ea>,SR -W- I I I I I

MOVE From SR SR,<ea> -W- - - - - -

MOVE USP to/from Address Register USP,An --L - - - - -

An,USP

MOVEA MOVE Address <ea>,An -WL - - - - -

MOVEM MOVE Multiple <register list>,<ea> -WL - - - - -

<ea>,<register list>

---------- Page 2. CUT HERE. ----------

MOVEP MOVE Peripheral Dn,x(An) -WL - - - - -

x(An),Dn

MOVEQ MOVE 8-bit immediate #<-128.+127>,Dn --L - * * 0 0

MULS MULtiply Signed <ea>,Dn -W- - * * 0 0

MULU MULtiply Unsigned <ea>,Dn -W- - * * 0 0

NBCD Negate BCD <ea> B-- * U * U *

NEG NEGate <ea> BWL * * * * *

NEGX NEGate with eXtend <ea> BWL * * * * *

NOP No OPeration NOP - - - - -

NOT Form one's complement <ea> BWL - * * 0 0

OR Bit-wise OR <ea>,Dn BWL - * * 0 0

Dn,<ea>

ORI Bit-wise OR with Immediate #<data>,<ea> BWL - * * 0 0

PEA Push Effective Address <ea> --L - - - - -

RESET RESET all external devices RESET - - - - -

ROL ROtate Left #<1-8>,Dy BWL - * * 0 *

Dx,Dy

<ea>

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 <ea> B-- - - - - -

STOP Enable & wait for interrupts #<data> I I I I I

SUB SUBtract binary Dn,<ea> BWL * * * * *

<ea>,Dn

SUBA SUBtract binary from An <ea>,An -WL - - - - -

SUBI SUBtract Immediate #x,<ea> BWL * * * * *

SUBQ SUBtract 3-bit immediate #<data>,<ea> 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 <ea> B-- - * * 0 0

TRAP Execute TRAP Exception #<vector> - - - - -

TRAPV TRAPV Exception if V-bit Set TRAPV - - - - -

TST TeST for negative or zero <ea> 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

<ea> Effective Address Operand

<data> Immediate data

<label> Assembler label

<vector> TRAP instruction Exception vector (0-15)

<rg.lst> MOVEM instruction register specification list

<displ.> 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 LS - Lower or Same LE - Less than or Equal

D1 = D0 EQ - Equal (Z-bit Set) EQ - Equal (Z-bit Set)

D1 != D0 NE - Not Equal (Z-bit Clear) NE - Not Equal (Z-bit Clear)

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 : alien@zikzak.apana.org.au

Revision 2.1 22 May, 1994

---------- Last Page. CUT HERE. ----------

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有