Mitsubishi M16C/60 Series Software Manual page 62

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

C PY
C
OM
(Y) – (M)
Op e r a t io n :
This instruction subtracts the contents of M from the contents of
F u n c t io n :
Y. The result is not stored and the contents of Y and M are not
modified.
St a t u s fla g : N :
V :
T :
B :
I :
D :
Z :
C :
Addressing mode
∆CPY∆#$nn
Immediate
∆CPY∆$zz
Zero page
∆CPY∆$hhll
Absolute
56
P
ARE MEMORY AND INDEX REGISTER
N is 1 when bit 7 of the operation result is 1 after the
operation; otherwise N is 0.
No change
No change
No change
No change
No change
Z is 1 when the operation result is 0; otherwise Z is 0.
C is 1 when the subtracted result is equal to or greater
than 0; otherwise C is 0.
Statement
Machine codes
Byte number
C0
, nn
16
16
C4
, zz
16
16
CC
, ll
, hh
16
16
16
C PY
Y
Cycle number
2
2
2
3
3
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents