DL205 User Manual, 4th Edition, Rev. B
5–228
Chapter 5: Standard RLL Instructions - ASCII
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ASCII Swap Bytes (SWAPB)
The ASCII Swap Bytes instruction swaps byte positions (high–byte to low–byte and low–byte
to high–byte) within each V-memory register of a series of V-memory registers for a specified
number of bytes.
• Starting Address: specifies the begining
of a series of V–memory registers the
instruction will use to begin byte
swapping
• Number of Bytes: specifies the number
of bytes, begining with the Starting
Address, to byte swap
Parameter DL260 Range
Starting Address All V-memory (See page 3-56)
Number of Bytes All V-memory (See page 3-56) or K1 to 128
Discrete Bit Flags Description
SP53 On if the CPU cannot execute the instruction.
SP71 On when a value used by the instruction is invalid.
A
B
C
E
D
xx
V2000
V2001
V2002
V2003
High
Low
No Byte Swapping
Byte Swap All
B
A
D
xx
C
E
V2000
V2001
V2002
V2003
High
Low
0005h
Byte Swap All but Null
B
A
D
xx
C
E
V2000
V2001
V2002
V2003
High
Low
0005h
Byte
Byte
0005h
Byte
(AIN, AEX, PRINTV, VPRINT)
Byte Swap
Preferences
B C D EA
A D C E
B
B C D E
A
B C D E
A
A D C E
B
DS Used
HPP N/A