Write a program that declares a string in the data section

Assignment Help Assembly Language
Reference no: EM131669849

Computer Architecture Assignment

Note: Please name all submitted work as yourownname.X.X

All programs should have your name commented at the top of the page

1. Write a simple Assembly Language program that declares a string in the data section:

.data
string:.asciiz "ABCDEFG"

Write a program that converts the string to all lower-case characters. Do this by adding 0x20 to each character in the string. (See Appendix F to figure out why this works.)

Assume that the data consists only of upper-case alphabetical characters, with no spaces or punctuation.

2. Fahrenheit/Celsius Converter

Write a program that repeatedly asks the user for a scale F or a C (for "Fahrenheit" or "Celsius") on one line followed by an integer temperature on the next line. It then converts the given temperature to the other scale. Use the formulas:

F = (9/5)C + 32

C = (5/9)(F - 32)

Exit the loop when the user types "Q". Assume that all input is correct. For example:

Enter Scale : F
Enter Temperature: 32
Celsius Temperature: 0C

Enter Scale : C
Enter Temperature: 100
Fahrenheit Temperature: 212F

Enter Scale : Q
done
3. Integer Division
a. Show how the MIPS processor would solve the problem
i. 7/3

4. Show the Floating point representation of 0.5

a. Exponent =
b. Fraction =
c. Sign bit =.

Reference no: EM131669849

Questions Cloud

Write a research question of hypothesis statements : Write detailed notes that should help you cement these concepts during this initial learning stage and provide a very useful resource for you to draw .
Building team skills as per the requirements : Imagine that the president of your college or university has just announced plans to retire. Your team, playing the role of the school's board of directors.
Write a summary of the security improvements you recommend : Write a two page summary of the security improvements you recommend for PureLand chemical to ensure better security and compliance.
Conformity with the moral law : 1. What does it mean for an action to be objectively right? A. An action is objectively right if a person believes that the action is moral.
Write a program that declares a string in the data section : Write a simple Assembly Language program that declares a string in the data section. Write a program that converts the string to all lower-case characters.
Creating a professional leadership portfolio : BBMM503 - create own leadership portfolio and action plan and students will have an opportunity to reflect upon their own leadership capabilities
Character faces in hamlet : Describe a dilemma that one character faces in Hamlet that requires a humanistic approach to solve, and then, describe how you would
Building an authentic and purposeful business at sister sky : Sisters Monica Simeon and Marina TurningRobe have committed themselves to making products that are both authentic and purposeful and in doing so have created.
Expect to see substantial learning by doing : In what types of industry would you expect to see substantial learning by doing? Why?

Reviews

Write a Review

Assembly Language Questions & Answers

  Prepare an assembly program that reads in a number of cents

prepare an assembly program that reads in a number of cents. the program will write out the number of dollars and cents

  Write a subroutine assembly language code using nasm

You have to write a subroutine (assembly language code using NASM) for the given equation - You cannot use MUL or DIV instructions, you have to perform multiplication and division (if required) using shift operations.

  Application that finds all 4 digit numbers

Create an application that finds all 4 digit numbers (those would be the numbers in the range 1000-9999) whose value is equal to the sum of each digit raised to the fourth power. MEANINGFUL output should be sent to the screen.

  Compute the boolean expression a and b or c

Compute the Boolean expression ( A AND B) OR C for. Devise a way to interchange two variables A and B without using a third variable or register. Hint: Think about the EXCLUSIVE OR instruction.

  Under what condition is the instruction sequence useful

On a certain computer it is possible to move a number from one register to another, shift each of them left by different amounts. Under what condition is this instruction sequence useful for computing ‘‘constant ´ variable''?

  Write the required embedded assembler code

Write the required embedded (_asm) assembler code for each section in the corresponding inline assembler blocks denoted by the _asm keyword.

  How many mul operations can this system perform

Compute number of lines in the address bus required so that the CPU can access all memory locations in the given RAM - Write a function that accepts a char array, its size and a char to search for in the given array. Use PROTO, INVOKE and LOCAL keyw..

  Design circuits incorporating microcontrollers

Choose a microcontroller for a particular application and design circuits incorporating microcontrollers plus any additional hardware to control a particular application.

  Document the protocols for passing

You must document the protocols for passing parameters and returning the result to the subroutine and also follow the convertion of saving and restoring registers in the subroutine.

  A basic home security system in assembly for an 8051

A basic home security system in assembly for an 8051. needs to have keypad for code and 3 sensors with a panic button.

  Implement a simple login and password system

You are to implement a simple login and password system. Your system should allow for TEN usernames and their associated passwords to be stored.

  It has three integer parameters, and it is a value-returning

That is, its name is discr , it has three integer parameters, and it is a value-returning procedure.Follow the cdecl protocol and write a short windows32 test-driver program to test the procedure.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd