【文章內(nèi)容簡介】
整 | 0111 | 1101 + | 0000 | 0110 83 H | 1000 | 0011 INC Increment memory (M)+$01 → M INCA Increment A (A)+$01 → M INCB Increment B (B)+$01 → M INCW Increment memory (M:M+1)+$0001→ M:M+1 INS Increment SP (SP)+$0001→ SP INX Increment X (X)+$01 → X INY Increment Y (Y)+$01 → Y 加一減一指令 DEC Decrement memory (M)$01 → M DECA Decrement A (A)$01 → M DECB Decrement B (B)$01 → M DECW Decrement memory (M:M+1)$0001→ M:M+1 DES Decrement SP (SP)$0001→ SP DEX Decrement X (X)$01 → X DEY Decrement Y (Y)$01 → Y 加一減一指令 CLC Clear C bit in CCR 0 → C CLI Clear I bit in CCR 0 → I CLV Clear V bit in CCR 0 → V CLR Clear memory $0 → M CLRA Clear A $0 → M CLRB Clear B $0 → M CLRW Clear memory 2bytes $00 → M:M+1 CLRX Clear X 2bytes $00 → X CLRY Clear Y 2bytes $00 → Y 清零指令 COM Complement memory , 1byte $FF(M)→ M or (/M) → M COMA Complement A , 1byte $FF(A)→ A or (/A) → A COMB Complement B , 1byte $FF(B)→ B or (/B) → B COMW Complement memory , 2bytes $FFFF(M:M+1)→ M:M+1 COMX Complement X , 2bytes $FFFF(X)→ X COMY Complement Y , 2bytes $FFFF(Y)→ Y 求反指令 NEG Complement memory , 1byte $00(M)→ M or (/M)+1 → M NEGA Complement A $00(A)→ A or (/A)+1→ A NEGB Complement B $00(B)→ B or (/B)+1→ B NEGW Complement memory , 2bytes $0000(M:M+1)→ M:M+1 NEGX Complement X , 2bytes $0000(X)→ X NEGY Complement Y , 2bytes $0000(Y)→ Y 取負數(shù)指令 CBA Compare A to B (A)(B) 影響 CCR寄存器 CMPA Compare A to memory (A)(M) CMPB Compare B to memory (A)(M) CPD Compare D to memory (A:B)(M:M+1) CPS Compare SP to memory (SP)(M:M+1) CPX Compare X to memory (X)(M:M+1) CPY Compare Y to memory (Y)(M:M+1) 比較指令 CPED Compare D to memory with borrow (A:B)(M:M+1)C CPES Compare SP to memory with borrow (SP)(M:M+1)C CPEX Compare X to memory with borrow (X)(M:M+1)C CPEY Compare Y to memory with borrow (Y)(M:M+1)C 比較指令 TST Test memory for zero or minus (M)$00 TSTA Test A for zero or minus (A)$00 TSTB Test B for zero or minus (B)$00 TSTW Test memory for zero or minus (M:M+1)$00 TSTX Test X for zero or minus (X)$00 TSTY Test Y for zero or minus (Y)$00 測試字節(jié)是否為零指令 BCLR Clear bits in memory (M) (mm) → M BITA Bit test A (A) (M) BITB Bit test B (B) (M) BITX Bit test X (X) (M:M+1) BITY Bit test Y (Y) (M:M+1) BSET Set bits in memory (M) +(mm) → M 測試位與位操作指令 BTAS Bit test And Set If (M) (Mast)=0,then set Z,else clear Z 位測試與置位指令( 用于信號量置位 ): ANDA AND A with memory (A)(M) → A ANDB AND B with memory (B)(M) → A ANDCC AND CCR with memory (CCR)(M)→ CCR ANDX AND X with memory (X)(M:M+1)→ X ANDY AND Y with memory (Y)(M:M+1)→ Y EORA Exlusive OR A with memory (A)⊕ (M)→ A EORB Exlusive OR B with memory (B)⊕ (M)→ B EORX Exlusive OR X with memory (X)⊕ (M:M+1)→ X EORY Exlusive OR Y with memory (Y)⊕ (M:M+1)→ Y 邏輯運算操作指令 ORAA OR A with memory (A)|(M) → A ORAB OR B with memory (B)|(M) → A ORCC OR CCR with memory (CCR)|(M)→ CCR ORX OR X with memory (X)|(M:M+1)→ X ORY OR Y with memory (Y)|(M:M+1)→ Y 邏輯運算操作指令 LSL Logic Shift Left memory, High bit to C, Low bit fill with 0 LSLW Logic Shift Left M:M+1,2 bytes High bit to C, Low bit fill with 0 LSLA Logic Shift Left A, High bit to C, Low bit fill with 0 LSLB Logic Shift Left B, High bit to C, Low bit fill with 0 同樣有 D、 X和 Y 邏輯移位與循環(huán)移位指令 LSR Logic Shift Right memory