Preview

Unit 4 Study guide

Satisfactory Essays
Open Document
Open Document
344 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 4 Study guide
Chapter 6 : Problems 1,6,16,19,20,24,28,41,44,45
6.1: ARITHMETIC INSTRUCTIONS
1. Find the CY and AC flags for each of the following:
(a) MOV A, #3FH CY=0 No carry out from D7
ADD A, #45H AC=1 carry from D3 to D4 00111111
+01000101
10000100
(b) MOV A, #99H CY=0 No carry out from D7
ADD A, #58H AC=1 carry from D3 to D4 10011001
+01011000
11110001
(c) MOV A, #0FFH CY=1
SETB C AC=0
ADDC A, #00
SETB C-> CY=1 11111111
+CY 1
100000000
+00000000
100000000

(d) MOV A, #OFFH CY=1
ADD A, #1 AC=1 11111111
+ 1
100000000
(e) MOV A, #OFEH CY=1
SETB C AC=1
ADDC A, #01 11111110
+ 1 11111111
+ 1
100000000

(f) CLR C CY=1
MOV A, #0FFH AC=1
ADDC A, #01
ADDC A, #0 11111111
+00000001
100000000
+00000000
100000000 6. State the steps that the SUBB instruction will go through for each of the following:
1. Take the 2’s complement of the subtrahend
2. Add it to the minuend
3. Invert the carry (a) 23H-12H 23H -> 00100011 00100011 12H -> 00010010 – 2’s complement +11101110 100010001 Step 3: CY=1 -> CF=0 Positive number 11H (b) 43H-53H 43H -> 01000011 01000011 53H -> 01010011 – 2’s complement +10101101 11110000 Step 3: CY=0 -> CF=1 Negative number -F0H (c) 99-99 99 -> 10011001 10011001 99 -> 10011001 – 2’s complement +01100111 100000000 Step 3: CY=1 -> CF=0 Positive 0
6.2: SIGNED NUMBER CONCEPTS AND ARITHMETIC OPERATIONS 16. Show how the following are represented by the assembler: (a) -23 -> 11101001 (b) +12 -> 00001100
(c) -28 -> 11100100
(d) +6FH -> 01101111
(e) -128 -> 10000000
(f) +127 -> 01111111 19. Explain the difference between the CY and OV flags and where each one is used.
The CY is when there is a carry bit from D7. The OV is set when either there is a carry from D6 to D7 OR a carry out of D7. If both are carried then it is a CY and OV is 0 20. Explain when the OV flag is raised. The OV flag is only

You May Also Find These Documents Helpful

  • Powerful Essays

    Study Guide for Unit 1 Exam

    • 2853 Words
    • 12 Pages

    1) Kidneys – The left kidney is higher than the right kidney due to the position of the liver. Filters waste products of metabolism that collect in the blood. They remove waste from the blood to form urine. The kidneys maintain balance between retention and excretion of fluids ( play key role in fluid and electrolyte balance). The normal adult urine output is 1200 to 1500 ml/ day. An output less than 30 ml/hr indicates possible circulatory, blood volume or renal alterations. Erythropoietin functions within the bone marrow to stimulate RBC production and maturation. Patients with chronic kidney conditions cannot produce sufficient quantities of this hormone are prone to anemia. The kidneys affect calcium and phosphate regulation by producing a substance that converts vitamin D. Patients with chronic alteration in the kidney fuction do not make sufficient amounts of the active vitamin D. They are prone to develop renal bone disease resulting from impaired calcium absorption. Renal hormones affect blood pressure regulation, renal ischemia (decreased blood supply), and renin is released from juxtaglomerular cells. Renin functions as an enzyme to convert angiotensinogen (a substance synthesized by the liver) into angiotension1. Angiotensin 1 is converted to angiotensin 2 in the lungs. Angiotensin 2 causes vasoconstriction and stimulates aldosterone released from the adrenal cortex. Aldosterone causes retention of water, which increases blood volume. The kidneys also produce prostaglandin E2 and prostacyclin, which help maintain renal blood flow through vasodilation. These mechanisms increase arterial blood pressure and renal blood flow.…

    • 2853 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    1. Summarize in your own words the steps you have followed to complete task 1?…

    • 1071 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Pt1420 Unit 2 Study Guide

    • 1286 Words
    • 6 Pages

    (c) A student is completing a project for submission to the Geography department about rainfall in their area.…

    • 1286 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    Unit 3 Study Guide

    • 1074 Words
    • 5 Pages

    1. List the 4 primary tissue types and give the general characteristics and functions of each one.…

    • 1074 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Unit 4 Study Guide

    • 2346 Words
    • 10 Pages

    Use the lecture folder to help you complete this guide. The more detail you can provide the better prepared for the test you will be.…

    • 2346 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    unit 13 study guide

    • 292 Words
    • 2 Pages

    12. List the function and location of the following structures: sclera, cornea, choroid, ciliary body, iris, lens, retina and pupil.…

    • 292 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Quiz Comp Archi

    • 438 Words
    • 3 Pages

    4) Please describe how the clock works in the digital circuit and what are main concerns on the clock design (performance, power).…

    • 438 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Unit 3 study guide

    • 1904 Words
    • 8 Pages

    A.There were more, larger, and better trade networks which means the bigger the network the more supplies and agriculture comes in which can create food surplus which leads to growth in population social classes and a golden age for the empire.…

    • 1904 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    unit 6 study guide

    • 423 Words
    • 3 Pages

    The Unit 6 Exam consists of a set of 20 multiple-choice questions. The questions for this Exam are based on Units 3–6, which focused on the POLC Model of Management as covered in the Bateman and Snell text (planning, organizing, leading, and controlling). There are 5 items for each of the four functions. You will be able to enter this Exam only once. There is a 2-hour time limit for this type of Exam. Make sure to complete the exam by the end of Unit 6 on Tuesday evening.…

    • 423 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    unit 2 study guide

    • 590 Words
    • 3 Pages

    11. What are the two types of fibers that transmit the nerve action potentials generated by excitation of any of the nociceptors.…

    • 590 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Study Guide

    • 1605 Words
    • 8 Pages

    Which of the following was evidence to support Vanzetti's innocence during the Braintree robbery and double murder trial?…

    • 1605 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    Study Guide

    • 754 Words
    • 4 Pages

    3. Microbiologists employee a number of approached to acquiring a pure culture from a from sample containing a number of different types of bacteria. Briefly describe three different procedures commonly used to secure pure cultures from a mixed culture. The use of simple labeled diagrams may be quite helpful.…

    • 754 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    lab2_SimpleALU

    • 278 Words
    • 2 Pages

    The Carryout and Overflow flags are very important for Addition and Subtraction. The Carryout flag is set if an unsigned overflow occurs. The Overflow flag is set if a signed overflow occurs.…

    • 278 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    DSD HELP

    • 300 Words
    • 2 Pages

    Digital System Design Introduction to Xilinx • Xilinx ISE Design Suite. • File  new project insert project name and select directory. • Product Category: to be general purpose. • Family: as Spartan3 • Device: XC3S400 • Package: PQ208NextFinish.…

    • 300 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    embedded

    • 1074 Words
    • 5 Pages

    o The high order byte is taken to be $00. This is how you access the…

    • 1074 Words
    • 5 Pages
    Satisfactory Essays