Reference no: EM13923577
Representing and Manipulating Information
1. Write code for an assembly language function named rot_left which rotates a given integer (provided in R6 by a value given in R12. The result should be returned in R4.
Your function should assume that the amount to rotate is between 0 and 31 inclusive. You are not allowed to use the rotation assembly language instructions:
neither ROR nor RRX.
Call your function from your mainline code, providing various parameters and checking the result for correctness.
2. Write a function in assembly language named encrypt which takes a pointer to a buffer containing some cleartext, and modifies the buffer to contain the encrypted version of that text.
The encryption scheme is to add a (wrap-around) displacement n to each alphabetic char. For example given the clear text
AaBbCcDdEeFfGgHhIiJjKkL1MmNnOoPpQqRrSsTtUuVvWXxYyZz
0123456789
Hello, my boots are layered like an onion.
!@#$%"&*()_-+={}[]\|
<>,.?/~;:"
and assuming for example n = 13, the result should be
NnOoPpQqRrSsTtUuVvi&XxYyZzAaBbCcDdEeFfGgHhIiJjKkL1Mm
0123456789
Uryyb, zl obbgf ner ynlrerq yvxr na bavba.
!@#$%"&*()_-+={}[]\|
<>,.?/-~ ;:"
Describe each market structure discussed in the course
: Describe each market structure discussed in the course (perfect competition, monopolistic competition, oligopoly, and monopoly) and discuss two of the market characteristics of each market structure.
|
Describe the sequence of transactions in the futures markets
: If the bank wanted to hedge its exposure to failing LIBOR on this loan commitment, describe the sequence of transactions in the futures markets it could undertake.
|
How the topic of this article apply to your personal life
: As you read the article, consider the following questions: How could the topic of this article apply to your personal or professional life, and how could it apply to an organization you have observed
|
Specific forms of workplace discrimination
: Evaluate the specific forms of workplace discrimination prohibited under current statutory and case law. Assess the classes of people protected by current employment law
|
Write code for an assembly language function
: Write code for an assembly language function named rot_left which rotates a given integer (provided in R6 by a value given in R12. The result should be returned in R4.
|
The evolution of business ethics
: In a three- to five-page paper, excluding the title page and reference page, complete the following:
|
Chain-of-command systems
: Question 1. A company whose structure, policies, and capabilities allow employees to respond quickly to customer needs and changes in the business environment is termed as a(n) _____. Question 2: Which of the following chain-of-command systems was ..
|
Calculate the number of futures contracts required to hedge
: Calculate the number of futures contracts required to hedge $15 million of Andrew's portfolio, using the data shown. State whether the hedge is long or short. Show all calculations.
|
What is the biggest challenge posed by egoism
: What is a code of conduct? What is its role within an organization? What is the biggest challenge posed by egoism? Summarize the influences of diversity within a workplace
|