Answer the following short questions briefly. Convert the following decimal integers into binary, octal, and hexadecimal: (a) 23,   (b) 107,  (c) 1238  (d) 92  (e) 173 Convert the following BCD numbers (assume that these are packed numbers) to decimal numbers: (a) 10001001,                    (b) 00001001 (c) 00110010,                    (d) 00000001 Convert the following decimal numbers into both packed and unpacked BCD forms: (a) 102,                              (b) 44 (c) 301,                              (d) 1000

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Answer the following short questions briefly.

  1. Convert the following decimal integers into binary, octal, and hexadecimal:
    (a) 23,   (b) 107,  (c) 1238  (d) 92  (e) 173
  2. Convert the following BCD numbers (assume that these are packed numbers) to decimal numbers:
    (a) 10001001,                    (b) 00001001
    (c) 00110010,                    (d) 00000001
  3. Convert the following decimal numbers into both packed and unpacked BCD forms:
    (a) 102,                              (b) 44
    (c) 301,                              (d) 1000
  4. Convert the following decimal numbers into 8-bit signed binary numbers:
    (a) +32,              (b) -12  (c) +100
  5. Convert the following binary numbers to the two’s complement form:
    (a) 1000 0001,                   (b) 1010 1100
    (c) 1010 1111,                   (d) 1000 0000
  6. Find the memory address of the next instruction executed by the microprocessor, when operated in the real mode, for the following CS:IP combinations:
    (a) CS = 1A00H and IP = B000H
    (b) CS = 2300H and IP = 1A00H
    (c) CS = 2000H and IP = 1000H
    (d) CS = 1000H and IP = 2000H
  7. Will an overflow occur if a signed FFH is added to a signed 01H?
  8. A number that contains 3 one bits is said to have _________ parity.
  9. What do the following MOV instructions accomplish?
    (a) MOV AX,BX,                 (b) MOV BX,AX
    (c) MOV BL,CH,                 (d) MOV ESP,EBP
    (e) MOV RAX,RCX
  10. Write an instruction for each of the following tasks:
    (a) move 12H into AL,        (b) move 123AH into AX
    (c) move 0CDH into CL      (d) move 1000H into RAX
    (e) move 1200A2H into EBX
  11. Suppose that DS = 0200H, BX = 0300H, and DI = 400H. Determine the memory address accessed by each of the following instructions, assuming real mode operation:
    (a) MOV AL,[1234H]         (b) MOV EAX,[BX]
    (c) MOV [DI],AL
  12. What is wrong with a MOV CS, AX instruction?
  13. Describe the operation of each of the following instructions:
    (a) PUSH AX                       (b) POP SI
    (c) PUSH [BX]                    (d) PUSHFD
    (e) POP DS
  14. What is wrong with the ADD ECX,AX instruction?
  15. If AX = 1001H and DX = 20FFH , list the sum and the contents of each flag register bit (C, A, S, Z, and O) after the ADD AX,DX instruction executes.
  16. Develop a short sequence of instructions that adds AL, BL, CL, DL, and AH. Save the sum in the DH register.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education