English
Language : 

HT48R05A-1 Datasheet, PDF (41/44 Pages) Holtek Semiconductor Inc – 8-Bit OTP Microcontroller
SWAP [m]
Description
Operation
Affected flag(s)
SWAPA [m]
Description
Operation
Affected flag(s)
SZ [m]
Description
Operation
Affected flag(s)
SZA [m]
Description
Operation
Affected flag(s)
Preliminary
HT48R05A-1
Swap nibbles within the data memory
The low-order and high-order nibbles of the specified data memory (one of
the data memories) are interchanged.
[m].3~[m].0 « [m].7~[m].4
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾¾
Swap data memory and place result in the accumulator
The low-order and high-order nibbles of the specified data memory are inter-
changed, writing the result to the accumulator. The contents of the data
memory remain unchanged.
ACC.3~ACC.0 ¬ [m].7~[m].4
ACC.7~ACC.4 ¬ [m].3~[m].0
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾¾
Skip if data memory is zero
If the contents of the specified data memory are zero, the following instruc-
tion, fetched during the current instruction execution, is discarded and a
dummy cycle is replaced to get the proper instruction (two cycles). Otherwise
proceed with the next instruction (one cycle).
Skip if [m]=0
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾¾
Move data memory to ACC, skip if zero
The contents of the specified data memory are copied to the accumulator. If
the contents is zero, the following instruction, fetched during the current in-
struction execution, is discarded and a dummy cycle is replaced to get the
proper instruction (two cycles). Otherwise proceed with the next instruction
(one cycle).
Skip if [m]=0
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾¾
41
February 25, 2000