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