0% found this document useful (0 votes)
20 views10 pages

Quiz Answar

The document provides examples of performing multiplication using Booth's algorithm. It shows the step-by-step working for multiplying -9 and -13, representing the numbers in binary and tracking the partial products and final result.

Uploaded by

Harshu Vagadiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views10 pages

Quiz Answar

The document provides examples of performing multiplication using Booth's algorithm. It shows the step-by-step working for multiplying -9 and -13, representing the numbers in binary and tracking the partial products and final result.

Uploaded by

Harshu Vagadiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

QUIZ QUESTIONS: 1

QUE-1 Solve a problem using booth algorithm (-9) with (-13)


To solve the multiplication of -9 and -13 using Booth's Algorithm, we follow these steps:

1. Represent both numbers in 8-bit signed binary format.

2. Use a 4-bit multiplier (since both numbers are less than 8 bits).

3. Perform the multiplication using Booth's Algorithm, keeping track of the partial products and the
final result.

Here's the process in table form:

Initial state:

• Multiplier (M): -9 (signed binary: 11110111)

• Multiplicand (Q): -13 (signed binary: 11110011)

Step AC Q Q(-1) Operation Comment

0 00000000 11110011 0 Initial Load multiplicand Q into accumulator AC

1 11111111 11111001 1 AC = -Q Negate Q and store it in AC

2 00000000 11111100 0 Right Shift Right shift AC and Q; Q(-1) = Q(0)

3 00001001 11111100 0 AC = M Load multiplier M into AC

4 00010010 11111100 0 Add Add AC to the left half of Q (Q = Q + AC)

5 00010010 11111100 0 Right Shift Right shift AC and Q; Q(-1) = Q(0)

6 00010010 01111110 0 Right Shift Right shift AC and Q; Q(-1) = Q(0)

7 00010010 10111111 1 AC = -Q Negate Q and store it in AC

8 00000000 10111111 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

9 00001001 10111111 1 AC = M Load multiplier M into AC


Step AC Q Q(-1) Operation Comment

10 00000100 10111111 1 Add Add AC to the left half of Q (Q = Q + AC)

11 00000100 10111111 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

12 00000100 11011111 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

13 00000100 11101111 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

14 00000100 01110111 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

15 00000100 10111011 1 AC = -Q Negate Q and store it in AC

16 00000000 10111011 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

17 00001001 10111011 1 AC = M Load multiplier M into AC

18 00001111 10111011 1 Add Add AC to the left half of Q (Q = Q + AC)

19 00001111 10111011 1 Right Shift Right shift AC and Q; Q(-1) = Q(0)

After 4 shifts, the final product is 00001111 10111011, which is equivalent to -9 * -13 = 117.

QUIZ QUESTIONS: 2
Q.1 Hold the address of instruction

A AR

B PC

C DR

D TR

Q.2 IR is how many register bits

A 12

B 14
C 16

D 8

Q.3 The empty symbolic address is denoted

A Compiler

B Program

C Label

D Assembly

Q.4 Computers that have a single-processor register usually assign to name it is.

A Register

B Accumulator

C Memory

D Adder

QUIZ QUESTIONS: 3
Q.1 What is JNZ

→ stands for “Jump if Not Zero.”

→It is used in assembly language programming.


→When the Zero Flag (ZF) is not set, the program jumps to the specified target
address.

→Instructions that set the ZF include CMP, SUB, ADD, TEST, AND, OR, and XOR

Q.2 What is STA

→STA stands for “Store Accumulator.”

→It is an instruction in assembly language.

→STA stores the value of the accumulator (AC) into a specified memory location

Q.3 ISZ

A Increment of vales

B Increment and zero

C Increment and skip zero

D None of these

Q.4 BSA

A Branch and save return Address

B Branch and sequence Address

C Sequence of Branch

D None of these

QUIZ QUESTIONS: 4
Q.1: perform arithmetic operation using GNU simulator (-6) + (13):

CODE
jmp start
start: nop
LXI H,3000H
MOV A,M
INX H;3001H
MOV C,M
SUB C
INX H;3002H
MOV M,A

hlt

QUIZ QUESTIONS: 5
Q.1 what is HLT
This instruction stands for "Halt." When executed, it stops the microprocessor's
execution until the next interrupt occurs. It essentially puts the processor into a
sleep state until it receives an interrupt signal.

Q.2 what is SKIP


There isn't a standard Intel 8085 instruction named "SKIP." It's possible that this
term refers to a specific instruction or feature within the GNUSim8085 simulator,
but without more context, it's difficult to provide a precise definition.
Q.3 what is DCR
This instruction stands for "Decrement Register." It decrements the contents of a
specified register by one. For example, if you execute DCR B, it will decrement the
value stored in the B register by one.

Q.4 what is MVI


This instruction stands for "Move Immediate." It's used to load an 8-bit immediate
value (data) into a register or memory location. For instance, MVI A, 05 would
load the value 05 into the accumulator register (A).

QUIZ QUESTIONS: 6
Q.1 perform any example for AND, OR, XOR, CMA

OR :
Lda 0001;
Mov b,a;
Lda 0003;
ORA b;
Sta 0005;
Hlt;

AND:

Lda 0001;
Mov b,a;
Lda 0003;
ANA b;
Sta 0005;
Hlt;
XOR:

Lda 0001;
Mov b,a;
Lda 0003;
XRA b;
Sta 0005;
Hlt;

Compliment:

Lda 0001;
Cma;
Sta 0005;
Hlt;

QUIZ QUESTIONS: 7
Q.1 what is Full adder truth table?
A B Cin Cout SUM
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1

Q.2 what is half Adder truth table?


A B Cout SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0

QUIZ QUESTIONS: 8
Q.1: What is RISC?
RISC is a type of computer architecture that emphasizes a small set of simple and highly
optimized instructions. In RISC architectures, instructions are typically executed in one clock
cycle, leading to faster execution. RISC processors often have a streamlined instruction set,
which allows for more efficient use of hardware resources. Examples of RISC architectures
include ARM and MIPS.

Q.2: What is Verilog?


Verilog is a hardware description language (HDL) used to model electronic systems. It is widely
used in digital circuit design and verification. Engineers use Verilog to describe the behavior of
digital circuits and systems, including logic gates, flip-flops, and other components. Verilog is
used for simulation, synthesis, and verification of digital designs, making it an essential tool in
the field of digital electronics.

Q.3 what is Memory?


Memory refers to the electronic components used to store data and instructions in a computer
system. It comes in various forms, including RAM (Random Access Memory), ROM (Read-Only
Memory), and secondary storage devices like hard drives and SSDs. Memory is essential for the
operation of computers, as it holds the data and programs that the CPU needs to process.

Q.4 what is Multiplex?


Multiplexing is a technique used in electronics and telecommunications to combine multiple
signals into a single signal for transmission over a shared medium. In digital electronics,
multiplexing often involves selecting one of several input signals and transmitting it over a
common pathway. This allows for the efficient use of resources and can increase the bandwidth
of a communication channel. Multiplexing is commonly used in applications such as data
transmission, signal processing, and analog-to-digital conversion.

You might also like