| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HCS12 bảng dữ liệu(PDF) 63 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
HCS12 bảng dữ liệu(HTML) 63 Page - Freescale Semiconductor, Inc |
|
63 / 452 page ![]() S12CPUV2 Reference Manual, Rev. 4.0 Freescale Semiconductor 63 5.10 Boolean Logic Instructions The Boolean logic instructions perform a logic operation between an 8-bit accumulator or the CCR and a memory value. AND, OR, and exclusive OR functions are supported. Table 5-8 summarizes logic instructions. 5.11 Clear, Complement, and Negate Instructions Each of the clear, complement, and negate instructions performs a specific binary operation on a value in an accumulator or in memory. Clear operations clear the value to 0, complement operations replace the value with its one’s complement, and negate operations replace the value with its two’s complement. Table 5-9 is a summary of clear, complement, and negate instructions. Table 5-8. Boolean Logic Instructions Mnemonic Function Operation ANDA AND A with memory (A) • (M) ⇒ A ANDB AND B with memory (B) • (M) ⇒ B ANDCC AND CCR with memory (clear CCR bits) (CCR) • (M) ⇒ CCR EORA Exclusive OR A with memory (A) ⊕ (M) ⇒ A EORB Exclusive OR B with memory (B) ⊕ (M) ⇒ B ORAA OR A with memory (A) + (M) ⇒ A ORAB OR B with memory (B) + (M) ⇒ B ORCC OR CCR with memory (set CCR bits) (CCR) + (M) ⇒ CCR Table 5-9. Clear, Complement, and Negate Instructions Mnemonic Function Operation CLC Clear C bit in CCR 0 ⇒ C CLI Clear I bit in CCR 0 ⇒ I CLR Clear memory $00 ⇒ M CLRA Clear A $00 ⇒ A CLRB Clear B $00 ⇒ B CLV Clear V bit in CCR 0 ⇒ V COM One’s complement memory $FF – (M) ⇒ M or (M) ⇒ M COMA One’s complement A $FF – (A) ⇒ A or (A) ⇒ A COMB One’s complement B $FF – (B) ⇒ B or (B) ⇒ B NEG Two’s complement memory $00 – (M) ⇒ M or (M) + 1 ⇒ M NEGA Two’s complement A $00 – (A) ⇒ A or (A) + 1 ⇒ A NEGB Two’s complement B $00 – (B) ⇒ B or (B) + 1 ⇒ B |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |