參數(shù)資料
型號: Z80B-CTC
英文描述: Z8 Microcontrollers
中文描述: Z8微控制器
文件頁數(shù): 144/222頁
文件大?。?/td> 1595K
代理商: Z80B-CTC
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁當(dāng)前第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁
Z8 Microcontrollers
Instruction Set
ZiLOG
12-4
UM001600-Z8X0599
12.2.1 Carry Flag (C)
The Carry Flag is set to 1 whenever the result of an arith-
metic operation generates a carry or a borrow the high or-
der bit 7. Otherwise, the Carry Flag is cleared to 0.
Following Rotate and Shift instructions, the Carry Flag
contains the last value shifted out of the specified register.
An instruction can set, reset, or complement the Carry
Flag.
IRET may change the value of the Carry Flag when the
Flag Register, saved in the Stack, is restored.
12.2.2 Zero Flag (Z)
For arithmetic and logical operations, the Zero Flag is set
to 1 if the result is zero. Otherwise, the Zero Flag is cleared
to 0.
If the result of testing bits in a register is 00H, the Zero Flag
is set to 1. Otherwise the Zero Flag is cleared to 0.
If the result of a Rotate or Shift operation is 00H, the Zero
Flag is set to 1. Otherwise, the Zero Flag is cleared to 0.
IRET changes the value of the Zero Flag when the Flag
Register saved in the Stack is restored. The WDT Instruc-
tion sets the Zero Flag to a 1.
12.2.3 Sign Flag (S)
The Sign Flag stores the value of the most significant bit of
a result following an arithmetic, logical, Rotate, or Shift op-
eration.
When performing arithmetic operations on signed num-
bers, binary two’s-complement notation is used to repre-
sent and process information. A positive number is identi-
fied by a 0 in the most significant bit position (bit 7);
therefore, the Sign Flag is also 0.
A negative number is identified by a 1 in the most signifi-
cant bit position (bit 7); therefore, the Sign Flag is also 1.
IRET changes the value of the Sign Flag when the Flag
Register saved in the Stack is restored.
12.2.4 Overflow Flag (V)
For signed arithmetic, Rotate, and Shift operations, the
Overflow Flag is set to 1 when the result is greater than the
maximum possible number (>127) or less than the mini-
mum possible number (<–128) that can be represented in
two’s-complement form. The Overflow Flag is set to 0 if no
overflow occurs.
Following logical operations the Overflow Flag is set to 0.
IRET changes the value of the Overflow Flag when the
Flag Register saved in the Stack is restored.
12.2.5 Decimal Adjust Flag (D)
The Decimal Adjust Flag is used for BCD arithmetic. Since
the algorithm for correcting BCD operations is different for
addition and subtraction, this flag specifies what type of in-
struction was last executed so that the subsequent Deci-
mal Adjust (DA) operation can function properly. Normally,
the Decimal Adjust Flag cannot be used as a test condi-
tion.
After a subtraction, the Decimal Adjust Flag is set to 1. Fol-
lowing an addition it is cleared to 0.
IRET changes the value of the Decimal Adjust Flag when
the Flag Register saved in the Stack is restored.
12.2.6 Half Carry Flag (H)
The Half Carry Flag is set to 1 whenever an addition gen-
erates a carry bit 3 (Overflow) or a subtraction generates a
borrow bit 3. The Half Carry Flag is used by the Decimal
Adjust (DA) instruction to convert the binary result of a pre-
vious addition or subtraction into the correct decimal
(BCD) result. As in the case of the Decimal Adjust Flag, the
user does not normally access this flag.
IRET changes the value of the Half Carry Flag when the
Flag Register saved in the Stack is restored.
相關(guān)PDF資料
PDF描述
Z80B-DART Z8 Microcontrollers
Z80B-PIO Z8 Microcontrollers
Z86E2116PSC Z8 Microcontrollers
Z8300-1PS 8-Bit Microprocessor
Z8300-3PS Microprocessor
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
Z80B-DART 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80B-PIO 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80B-SIO/O 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Z8 Microcontrollers
Z80C30 制造商:ZILOG 制造商全稱:ZILOG 功能描述:CMOS SCC SERIAL COMMUNICATIONS CONTROLLER
Z80C30-06LME 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller