![Panasonic MN103001G/F01K Скачать руководство пользователя страница 84](http://html.mh-extra.com/html/panasonic/mn103001g-f01k/mn103001g-f01k_user-manual_262908084.webp)
Extension Instruction Specifications
3-28
SWAP (Data swapping instruction that swaps bytes [high-order to low-order and vice versa] in four-byte data)
[Instruction Format (Macro Name)]
SWAP
Dm, Dn
[Assembler Mnemonic]
udf08
Dm, Dn
[Operation]
This instruction swaps the positions of the high-order and low-order 8-bit bytes within the respective high- and
low-order 16-bit half-words within the 32-bit data stored in Dm, and then swaps the positions of the high-order and
low-order 16-bit half-words, and then stores the result in Dn. As a result, bits 31 through 24 of Dm are stored in bits
7 through 0 in Dn, bits 23 through 16 of Dm are stored in bits 15 through 8 in Dn, bits 15 through 8 of Dm are stored
in bits 23 through 16 in Dn, and bits 7 through 0 of Dm are stored in bits 31 through 24 in Dn.
The sample of execution
Before execution:
0x12345678
After execution:
0x78563412
Bit 31
Bit 0
MSB
LSB
Dm before execution
Dn after execution
Dm[31:24]
Dm[23:16]
Dm[15:8]
Dm[7:0]
Bit 31
Bit 0
MSB
LSB
Dm[7:0]
Dm[15:8]
Dm[23:16]
Dm[31:24]
Содержание MN103001G/F01K
Страница 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 7: ...14 A D Converter 15 I O Ports 16 Internal Flash Memory 17 Ordering Mask ROM Appendix 14 15 16 17 ...
Страница 8: ......
Страница 9: ...Table of Contents List of Figures and Tables 0 ...
Страница 26: ...xviii ...
Страница 27: ...1 0 1 General Specifications ...
Страница 35: ...2 CPU 2 ...
Страница 57: ...3 Extension Instruction Specifications 3 ...
Страница 96: ...Extension Instruction Specifications 3 40 ...
Страница 97: ...4 Memory Modes 3 4 ...
Страница 102: ...Memory Modes 4 6 ...
Страница 103: ...5 Operating Mode 5 ...
Страница 107: ...6 Clock Generator 6 13 ...
Страница 111: ...7 Internal Memory 7 ...
Страница 114: ...Internal Memory 7 4 ...
Страница 115: ...8 Bus Controller BC 8 ...
Страница 189: ...9 Interrupt Controller 9 ...
Страница 220: ...Interrupt Controller 9 32 ...
Страница 221: ...10 8 bit Timers 9 10 ...
Страница 254: ...8 bit Timers 10 34 ...
Страница 255: ...11 16 bit Timers 11 ...
Страница 292: ...16 bit Timers 11 38 ...
Страница 293: ...12 Watchdog Timer 11 12 ...
Страница 302: ...Watchdog Timer 12 10 ...
Страница 303: ...13 Serial Interface 13 ...
Страница 354: ...Serial Interface 13 52 ...
Страница 355: ...14 A D Converter 14 ...
Страница 367: ...15 I O Ports 15 ...
Страница 431: ...16 Internal Flash Memory 16 ...
Страница 439: ...17 17 Ordering Mask ROM ...
Страница 442: ...Ordering Mask ROM 17 4 ...
Страница 443: ...Appendix ...