| 数据搜索系统,热门电子元器件搜索 |
|
PM0044 数据表(PDF) 74 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0044 数据表(HTML) 74 Page - STMicroelectronics |
|
74 / 162 page ![]() STM8 instruction set PM0044 74/162 Doc ID 13590 Rev 3 7.4 Instruction set The following pages give a detailed description of each STM8 instruction. SWAPW Swap bytes - - - - - SWAPW X R0 ↔ R8 R1 ↔ R9 R2 ↔ R10 R3 ↔ R11 R4 ↔ R12 R5 ↔ R13 R6 ↔ R14 R7 ↔ R15 5E 1 TNZ Test for negative or zero -- - - - TNZ ([$1234.w],X) CC.N ← R7 CC.Z ← 1 if R=$00 ← 0 otherwise 72 6D ww bb 4 TNZW Test word for negative or zero -- - - -TNZW X CC.N ← R15 CC.Z ← 1 if R=$0000 ← 0 otherwise 5D 2 TRAP Software interrupt -1 - 1 - - - TRAP PC ← PC+1 M(SP--) ← PCL M(SP--) ← PCH M(SP--) ← PCE M(SP--) ← YL M(SP--) ← YH M(SP--) ← XL M(SP--) ← XH M(SP--) ← A M(SP--) ← CC PC ← TRAP vector address 83 9 Flush WFE Wait for event (CPU stopped, Low power mode) - - --- - - WFE CPU clock stopped till the event input is activated. Internal peripherals are still running 72 8F 1 WFI Wait for interrupt (CPU stopped, Low power mode) -1 - 0 - - - WFI CC.I0 ← 0, CC.I1 ← 1 CPU clock stopped till an interrupt occurs. Internal peripherals are still running 8F 10 XOR Logical exclusive OR -- - - - XOR A,($12,SP) A ← A XOR M(SP+shortoff) 18 bb 1 1. Number of cycles corresponding to the example op-code. 2. If branch taken. Table 42. Instruction set summary (continued) Description Effect on CC register Syntax example Operation Example op- code(s) VI1 H I0 N Z C |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |