You are on page 1of 2

Christian O. Sabas Assignment No.

2
CPE103 – B16 September 14, 2020

I. What are the different flags used by Intel important and usually ignored in
processors? unsigned operations.
The different flags used by the
7. Trap Flag – This allows trapping using
microprocessor were:
an on-chip features the debugs, this is
1. Carry Flag – As dedicated by some commonly used on visual c++
programs the carry flag indicates error debugging. Trapping is a feature use
condition error, it holds the carry after debug faulty software.
addition of a specific binary
representation or in subtraction it
appears when the borrow. 8. Interrupt Flag – Typically used in
manipulating the operation of the INTR
2. Parity Flag – This is the count of one input pin.
either even or odd, for instance there are
three 1’s binary number on the lower 8 9. Direction Flag – This choose between
bit this implies to an odd parity. This decrement or increment mode for
type of flag has a bit of application to the registers such as DI and/or SI.
modern programming this was used by
the prior intel microprocessor for the
verification of data in the data 10. Nested Task – Implies that the newest
communication environments. task was nested on another task which is
in protected mode operation.
3. Auxiliary Flag – This type of flag
focuses between position 3 and 4 of the II. What are the conditions to set or reset the
result. It holds a half carry after addition flags?
and while borrow after subtraction.
These are the condition need to be satisfied
in order to set or reset the later indicated
4. Sign Flag – This holds the value at the flags:
most significant bit of the result.
1. Carry Flag – Carry is formed when n bit
5. Zero Flag – I interprets the number of operations are done and the outcome is
zero shown in the result, the way to more than n bits, then this flag is set to 1,
access and recognize this, its values can then it is reset to 0.
be interchange accidentally yet this is the
way how intel want this flag to be 2. Parity Flag – Sets if the number of 1’s is
named. even and resets when odd.

6. Overflow Flag – the overflow flag is an 3. Auxiliary Flag – Sets when the carry
indication that the result goes beyond the appears on the bit 4 and resets if there is
capacity of the system, it only applies none
the signed operation and not really
Christian O. Sabas Assignment No. 2
CPE103 – B16 September 14, 2020

4. Sign Flag – sign flag follows binary number REFERENCES


on the most significant bit of the result (left
most part.) Brey, B. B. (2009). The Intel Microprocessor:
Architecture, Programming, Interfacing (8th
5. Zero Flag – If the entire results of a logical ed.). Upper Saddle River, New Jersey
or an arithmetic operation are purely zeros Columbus, Ohio: Pearson Prentice Hall™ is a
flag hold the value of one and on the other trademark of Pearson Education, Inc.
hand if there is even a single number 1 this
flag resets. Geeks for Geeks. (n.d.). Retrieved from Flag
Register of 8086:
https://www.geeksforgeeks.org/flag-
6. Overflow Flag – the overflow flag sets or register-8086-microprocessor/
resets base on the XOR value of the carry in
Tutorials Point. (n.d.). Retrieved from
and carry of the.
https://www.tutorialspoint.com/flag-
7. Trap Flag – The intel 8086 really got no register-of-8086-microprocessor
particular instruction to reset this flag.

8. Interrupt Flag – If this flag is set then the


microprocessor must identify outlying
interrupt requests. Moreover, the interrupt
flag is reset, no interrupt requests will be
registered by the microprocessor, and it will
just be disregarded.

9. Direction Flag – This flag accesses the


string data from the higher location to the
lower position of the memory.

10. Nested Task – Set if recent task is nested


within alternative task.

You might also like