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

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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