Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Programming Language Expert

Using the Irvine32 library functions

1. Get familiar the functions of Irvine32 library.

Note:

2. Please comment your code liberally

3. Please mark various problems in the code with a comment shown below and employ the waitMsg function between each problem. ex is shown below:

 .code

 ;problem 1

        Enter the code for problem 1 here…
        ….
               Call WaitMsg            ;this will allow one to observe the output
;problem 2

     Enter the code for problem 2 here…
               …..
              Call WaitMsg            ;this will allow one to observe the output
(and so on)

Problems:

1. The file myInputFile.txt is an encrypted file. Your assignment is to decrypt this file and expectantly answer the problem. Do the following in your code.

a. Open files “InputFile.txt”, read contents.

Hint: if your file open handle doesn’t work, check that you have the InputFile.txt file in project directory and not the debug directory.

b. XOR each byte of the file with 0ffh. (Please refer to the note on XOR operation below)

c. Print the contents of file decoded string to the console window

d. Print output to a file “OutputFile.txt”

e. Use the comment in your asm file to answer.

A note on the XOR operation

XOR operation is a Boolean operation just like OR, NOT, and so forth the truth table the XOR is following, where Input A and Input B are binary values.

Input A     Input B    Result
0                 0            0
0                 1            1
1                 0            1
1                 1            0

The subsequent is an ex of how you would use it and the result to anticipate:

     mov      al,02h        ;initialize a1 to 02 hex
     xor      al,0ffh        ;xor 02h and 0ffh

The outcome will be 0fdh in register al. You might use http://en.wikipedia.org/wiki/Exclusive_or for a comprehensive description.

2. Generate 32 random points which have (x, y) co-ordinates. The co-ordinates are constrained to be in the subsequent range:

(-15<= x <= 14) and (-15<=y <=14)

(Hint – make a random # between 0 and 29 then subtract 15 from this).

a. Plot the co-ordinate in the console screen with a different colour if it lies in the following quadrants:

Quadrant 1 points gets a yellow *

Quadrant 2 points gets a cyan *

Quadrant 3 points gets a red *

Quadrant 4 points gets a green *

b. Draw the x and y axis too

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91618

Have any Question? 


Related Questions in Programming Language

The briefyour small development team of ideally three

The Brief Your small development team of (ideally) three people has been asked to implement and test the Human Resource Information System desktop application. Your software product will be a database- backed desktop app ...

You must do this assignment correctly as described

You must do this assignment correctly as described below.  If you do not follow the directions or break the rules you will receive a 0 score. Simulation of checking tic-tac-toe board for wins by counting X and O in rows, ...

Cp1404cp5632 2016 sp22252 assignment 1 - shopping list

CP1404/CP5632 2016 SP2/22/52 Assignment 1 - Shopping List 1.0 Task: You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will hel ...

Computerscienceprogram-writeallofthefollowingmainprogramcall

Computer Science Program- Write all of the following: main program: Call a function to open an input file. Call a function to read 3 integers in from the input file. Call a function that will find 3 normalized doubles, g ...

Write a program that calculates several possible tips to

Write a program that calculates several possible tips to give to a waiter at a restaurant. Ask the user to enter the total cost of the meal and then calculate a tip at 10%, 12.5%, 15%, 17.5%, and 20%. Write the original ...

Programming assignment- implement a udp client and udp

PROGRAMMING ASSIGNMENT- Implement a UDP client and UDP server that support simple timeout-based retransmission with AIMD congestion control: -The client should send as many packets as are in its CURWIN (current window) a ...

Assignmentcase problem1 - online trivia found on pages

Assignment: Case Problem1 - Online Trivia found on pages 794-795 of your textbook. Complete the web pages and upload them to your 000WebHost account. After uploading the files make sure to update your index.html page to ...

This assignment introduces you to the perl language and cgi

This assignment introduces you to the Perl language and CGI programming. You will use your scripting and html skills to build a Perl program that will gather user input to then generate a personal webpage. This program w ...

Operating systems assignment-1 binary record sorting in

Operating Systems Assignment- 1. Binary Record Sorting in Ascending Order| You will write a simple sorting program. This program should be invoked as follows: shell% ./fastsort -i inputfile -o outputfile The above line m ...

Assignmentthis assignment will be marked out of 100 and

Assignment This assignment will be marked out of 100 and carries 30% of the overall module weighting. Your .java files and report for this part must be uploaded to WebLearn and submitted by 3pm on Wednesday 27th April 20 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate