a6-2004-37957-pseudo-instructions
.pdf
keyboard_arrow_up
School
University of Regina *
*We aren’t endorsed by this school
Course
201
Subject
Electrical Engineering
Date
Jan 9, 2024
Type
Pages
8
Uploaded by DrBook9814
Studocu is not sponsored or endorsed by any college or university
A6 2004 37957 -
pseudo-instructions
Introduction to Digital Systems (University of Regina)
Studocu is not sponsored or endorsed by any college or university
A6 2004 37957 -
pseudo-instructions
Introduction to Digital Systems (University of Regina)
Downloaded by black pearl (bp6735254@gmail.com)
lOMoARcPSD|21438098
NAME: KHUSHIBEN PIYUSHBHAI PATEL
STUDENT ID: 200437957
ASSIGNMENT NO: A6
Task 1
The following are some additional pseudo-instructions that one could define in the assembly
system that we have discussed. For each of them, give one or more real assembly instructions
to perform the expected operation. Remember: pseudo-instructions cannot modify any
registers except the specified $rd and $pc for branch/jump (where applicable), but pseudo
instructions may rely on $at for intermediate results. Provide short description of the
potential use of each listed pseudo-instruction below.
Answer:
A). xchg $rt, o[$rs]
#swap the memory in M[$rs+o] with $rt
.xchg : use to changes data between to operands.
$rt : A second type register in R-type instruction
$rs : used first source register
MIPS assembly instruction:
Sub $at, $rt, $0
lw $rt, 0 [$rs]
sw $at, 0 [$rs]
B). slld $rs,$rt,shamt
#Shift the double word rs:rt left by shamt
Slld : used for shift left register
$rt: A second type register in R-type of instruction
$rs: is source register and used for first source register
Shamt : it is used to shift two operands.
MIPS assembly Instruction:
Slr $at,rt, 32-shamt
Sll $rs,rs, shamt
Downloaded by black pearl (bp6735254@gmail.com)
lOMoARcPSD|21438098
Sll $rs,$rs,$at
C). double $rd, $rs
#$rd = 2x($rs)
Double: store data in 8 memory location
$rt: A second type of register in R-type of instruction
$rs : is first source register and used for first source register
Li: li means load the
immediate value, immediate values are 16-bits.
Bgt: bgt means branching pseudo instruction
Blt: blt means branching pseudo instruction
Sll : sll means shift left register
MIPS assembly instruction:
li $at, 0x3FFF
bgt $rs, $at, ERRORHANDLER
li $at, 0xC000
blt $rs,$at, ERRORHANDLER
sll $rd,$rs,1
D). triple $rd, $rs
#$rd = 3x($rs)
triple: store data in 12 memory locations
$rt: A second type of register in R-type of instruction
Li: li means load the immediate value, immediate values are 16-bits
Bgt : bgt means branching pseudo instruction
Blt: blt means branching pseudo instruction
Sll : sll means shift left register
Add: add $rs and 1, and stored the result in $rd
MIPS assembly instruction:
Li $at, 03xFFF
Bgt $rs,$at, ERRORHANDLER
Downloaded by black pearl (bp6735254@gmail.com)
lOMoARcPSD|21438098
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Design the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by one
arrow_forward
Digital Electronics
Are these complete answers? I want complete
arrow_forward
Question iii please help......
arrow_forward
Write an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.
arrow_forward
The numbers from 0-9 and a no characters
is the Basic 1 digit seven segment display
* .can show
False
True
In a (CA) method of 7 segments, the
anodes of all the LED segments are
* "connected to the logic "O
False
True
Some times may run out of pins on your
Arduino board and need to not extend it
* .with shift registers
True
False
arrow_forward
Microprocessor
arrow_forward
RESEARCH
Draw at least 4 typrs of IC.
Discuss the different IC packages.
How to identify the pin numbering of IC?
Proper handling of IC.
What is seven-segment display?
How to produce the required decimal digit from 0 through 9 using seven-segment display?
Uses of seven-segment display.
arrow_forward
Design an encoding matrix with diodes and resistors to display a decimal number to on the
seven-segment display. You have 10 switches (WO-W9) with one terminal connected to
Vec. For decimal number 0, switch 0 (S0) is closed, for decimal number 1, switch 1 (S1) is
closed etc. (Switches are on the vertical axis, S0 on top and the outputs are taken on the
horizontal axis (Y0-Y6), with “a" on the left and "g" on the right. Note that (Y0-Y6) outputs
are used as inputs to seven-segment display. Since these outputs cannot drive the seven segment
display LEDS you may need additional bipolar transistors and resistors. The supply voltage is
5V and each LED needs a current of 20mA.
Note that this is a design problem and the design is not unique. Do your best!
f
a
a
e
arrow_forward
Logic Design
courses / EE200SP21 / General / Mid Term Examination Part II (Subjecti
Compute the minimal products of sum and minimal sum of
products expressions for following KMAP. Show your groupings on
KMAP
АВ CD
1
1
1
1
0.
Instructions: You have to solve the answer by hand on paper,
scan/take photo and upload it as a single file.
Local Disk (D:)
Mid Term Examinat.
arrow_forward
Adocs.google.com
is a logic switch that select
information from one of the input
line and directs it to a single line
Encoder
Decoder
Adder
Multiplexer
Binary to octal can be implemented
used 3-8
De-Multiplexer
Multiplexer
Decoder
Encoder
System base 12 include numbers
from ... to ....
1-B
1-C
1-12
1-11
۹:۰۳
F
arrow_forward
Question Vvv
For a microprocessor similar to ATmega328p an 8 bit ADC uses a VREF = 3.3 V. When an analog read is executed the return value is 182.
What Voltage is present on the input?
Enter the value in the box provided in mV. Round to the nearest mV. No units are required
.
.Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line ..
arrow_forward
USE DIGITAL LOGIC AND DESIGN
Part 1: In Figure_4; we have 4-bit Comparator using 2-bit Comparators block. You have to satisfy given condition by applying all data on figure 4. At the end, given condition should produce HIGH output and other two should be LOW.
A3 A2 A1 A0 = 1101 and B3 B2 B1 B0 = 1110
Figure_4
Part 2: The serial data-input waveform (Data in) and data-select inputs (S0 and S1) are shown in Figure_5. Determine the data-output waveforms from D0 through D3.
Figure_5
Part 3: Decoder can be useful when we have to decode some specific numbers from their equivalent code. Figure 6 has a concept of 3 to 8 line decoder from which you have to generate output waveform from D0 to D7 with proper relationship to input.
Figure_6
Part 4: The data-input and…
arrow_forward
How many states required to design an FSM machine to process the following
sequence,
000111000
6.
6.
3
arrow_forward
Convert (26)10 into a binary number
Convert (26)10 into a binary number
Convert (10110)2 into a decimal number.
The Decimal Equivalent of the given Octal Number 127.4. is -------------
The Decimal Equivalent of the given Hexa Decimal Number (B65F)is ------------
Convert decimal 56 to binary
Convert (0.6875)10 to (-------)2
Convert 362.358 into a decimal number
Convert 42A.1216 into a decimal number
arrow_forward
Please answer in typing format
arrow_forward
We want to design a digital circuit that converts
Gray code (ABC) to Binary code (xyz). Set up a 8-to-
1 line multiplexer so that the output gives y as a
function of ABC. "A" is given to the most significant
bit of the control inputs of the multiplexer. "C" is
given to the least significant bit of the control inputs
of the multiplexer.
arrow_forward
10
arrow_forward
ehcu.org/pluginfile
100%
10 / 11
locations, count how many times is 0 and how
many times 1 is.
Questions:-
1- Write a program in assembly language to perform the following logic
ci
BL
CL
DL
[5100]-
2- How we can perform the NEG and NOT instructions by using different
instructions.
3- Write the following program by using different instruction or instructions
for each instruction on the
program.
MOV AL , 00
MOV BX , FFFF
XOR CL , FF
NEG BYTE PTR [DI]
AND CX ,
LG
arrow_forward
QUESTION i please help........
arrow_forward
After executing
MOV AX,-11011
SAHF
JNC WAQIQI
(a) Will the processor jump?
(b) repeat the solution if SAHF is
replaced by SUB AH,18.
arrow_forward
Which of the following is true about quantization?
a. Actual quantization error is the same all throughout the process.b. The signal to noise ratio is the same all throughout the quantization process.c. The smaller the resolution the less quantization error is introducedd. All of the choices
arrow_forward
An Intel 8085 processor is executing the program
given below.
MVI A, 10H
MVI B, 10H
BACK NOP
:
ADD B
RLC
JNC BACK
HLT
The number of times that the operation NOP will
be executed is equal to
arrow_forward
Draw a schematic to interface a 15-key matrix keyboard using port C of the 8255A. Write instructions to initialize the port. (Microprocessor Subject)
arrow_forward
Needs Complete solution with 100 % accuracy.
arrow_forward
in Intel 8086 microprocessor, the memory address for the code segment 771Fh and offset
3584 h is
O 7A774
3CF5F
О АСАЗО
OACA3
in Intel 8086 microprocessor, the memory address for the code segment 3021 h and offset
21D7h is
323E7
51F80
051F8
24D91
arrow_forward
Define MUX and DEMUX. Where we use mux and demux system? How toc reate a 16:1 MUX by using 4:1 MUX with a truth table and draw a diagram for this MUX
arrow_forward
a. (697)10 into Octal and Hexa decimal
b. (2D9)16 into Decimal and Octal
arrow_forward
(i) Convert decimal number 567 to Octal
(ii) Convert decimal number 39 to binary
(iii) Convert decimal number 644 to hexadecimal
(iv) Convert hexadecimal value C9 to binary.
Convert (0.677)10 into an octal number
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- Design the interfacing circuit shown below and write a program to display single digit (between 0 and 9) prime numbers followed by even numbers, the next odd numbers and repeats in 7-segment displays and its equivalent 8-bit binary value in LEDS. a) When displaying Prime numbers, the first 7-segment display must show "P" and the second 7-segment display must show prime numbers one by one b) When displaying Even numbers, the first 7-segment display must show "E" and the second 7-segment display must show even numbers one by one c) When displaying Odd numbers, the first 7-segment display must show "O" and the second 7-segment display must show even numbers one by onearrow_forwardDigital Electronics Are these complete answers? I want completearrow_forwardQuestion iii please help......arrow_forward
- Write an assembly 8051 code to count a hexadecimal digit every second and display it on the 7-segment.arrow_forwardThe numbers from 0-9 and a no characters is the Basic 1 digit seven segment display * .can show False True In a (CA) method of 7 segments, the anodes of all the LED segments are * "connected to the logic "O False True Some times may run out of pins on your Arduino board and need to not extend it * .with shift registers True Falsearrow_forwardMicroprocessorarrow_forward
- RESEARCH Draw at least 4 typrs of IC. Discuss the different IC packages. How to identify the pin numbering of IC? Proper handling of IC. What is seven-segment display? How to produce the required decimal digit from 0 through 9 using seven-segment display? Uses of seven-segment display.arrow_forwardDesign an encoding matrix with diodes and resistors to display a decimal number to on the seven-segment display. You have 10 switches (WO-W9) with one terminal connected to Vec. For decimal number 0, switch 0 (S0) is closed, for decimal number 1, switch 1 (S1) is closed etc. (Switches are on the vertical axis, S0 on top and the outputs are taken on the horizontal axis (Y0-Y6), with “a" on the left and "g" on the right. Note that (Y0-Y6) outputs are used as inputs to seven-segment display. Since these outputs cannot drive the seven segment display LEDS you may need additional bipolar transistors and resistors. The supply voltage is 5V and each LED needs a current of 20mA. Note that this is a design problem and the design is not unique. Do your best! f a a earrow_forwardLogic Design courses / EE200SP21 / General / Mid Term Examination Part II (Subjecti Compute the minimal products of sum and minimal sum of products expressions for following KMAP. Show your groupings on KMAP АВ CD 1 1 1 1 0. Instructions: You have to solve the answer by hand on paper, scan/take photo and upload it as a single file. Local Disk (D:) Mid Term Examinat.arrow_forward
- Adocs.google.com is a logic switch that select information from one of the input line and directs it to a single line Encoder Decoder Adder Multiplexer Binary to octal can be implemented used 3-8 De-Multiplexer Multiplexer Decoder Encoder System base 12 include numbers from ... to .... 1-B 1-C 1-12 1-11 ۹:۰۳ Farrow_forwardQuestion Vvv For a microprocessor similar to ATmega328p an 8 bit ADC uses a VREF = 3.3 V. When an analog read is executed the return value is 182. What Voltage is present on the input? Enter the value in the box provided in mV. Round to the nearest mV. No units are required . .Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line ..arrow_forwardUSE DIGITAL LOGIC AND DESIGN Part 1: In Figure_4; we have 4-bit Comparator using 2-bit Comparators block. You have to satisfy given condition by applying all data on figure 4. At the end, given condition should produce HIGH output and other two should be LOW. A3 A2 A1 A0 = 1101 and B3 B2 B1 B0 = 1110 Figure_4 Part 2: The serial data-input waveform (Data in) and data-select inputs (S0 and S1) are shown in Figure_5. Determine the data-output waveforms from D0 through D3. Figure_5 Part 3: Decoder can be useful when we have to decode some specific numbers from their equivalent code. Figure 6 has a concept of 3 to 8 line decoder from which you have to generate output waveform from D0 to D7 with proper relationship to input. Figure_6 Part 4: The data-input and…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you