| Zakładka z wyszukiwarką danych komponentów |
|
45111 Arkusz danych(PDF) 142 Page - List of Unclassifed Manufacturers |
|
|
|||||||||||||||||||||||||||||
45111 Arkusz danych(HTML) 142 Page - List of Unclassifed Manufacturers |
|
142 / 184 page ![]() 13 Appendix C: SX Instruction Set Page 142 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. SUB dest, src Subtract src from dest Command Words Cycles Affects Coding 1) SUB fr, W 1 1 (4) fr, C, DC, Z 0000 101f ffff SUB fr, W 2) SUB fr1, #literal 2 2 (8) fr, W, C, DC, Z 1100 kkkk kkkk MOV W, #lit 0000 101f ffff SUB fr, W 3) SUB fr1, fr2 2 2 (8) fr, W, C, DC, Z 0010 000f ffff MOV W, fr 0000 101f ffff SUB fr, W Operation: src is subtracted from dest. C will be cleared to 0 if an underflow occurred; otherwise, C will be set to 1. DC will be cleared to 0 if an underflow occurred in the least-significant nibble. Z will be set to 1 if the result was 0; otherwise, Z will be cleared to 0. The MOV W, fr-W command is similar to #1, except the result is moved to W, and fr keeps its original contents. If CARRYX is specified, c is added to the result. Insert an STC before the first Sub on a register to avoid strange results. SUBB dest, src_bit Subtract src_bit from dest Command Words Cycles Affects Coding 1) SUBB fr, op.bit 2 2 (8) fr, Z 0110 bbbf ffff SNB op.bit 0000 111f ffff DEC fr 1) SUBB fr, /op.bit 2 2 (8) fr, Z 0111 bbbf ffff SB op.bit 0000 111f ffff DEC fr Operation: Subtracts src_bit from dest. If dest was decremented, Z will be set if the result was zero; else, Z will be cleared. This instruction is useful for subtracting the carry from the upper byte of a double-byte value after the lower byte has been subtracted. SWAP dest Swap nibbles in dest Command Words Cycles Affects Coding 1) SWAP fr 1 1 (4) fr 0011 101f ffff SWAP fr Operation: The high- and low-order nibbles of dest are swapped. The MOV W,<>fr command is similar to SWAP fr, except the result is moved to W, and fr keeps its original contents. |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów 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 |