Ask Question, Ask an Expert


Ask Programming Language Expert

Using the Irvine32 library functions

1. Get familiar the functions of Irvine32 library.


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:


 ;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)


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 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

Consider the following three programswhere i k l are low

Consider the following three programs: where i, k, l are low variables and a, b, c, d, h, n are high variables. Assume db is a database with two columns (shown as array, where the index represents the row), lookup and is ...

Your problem is as followswrite a program that will ask the

Your problem is as follows: Write a program that will ask the user to enter 4 quiz scores for 3 students.  You will need to fine the lowest quiz grade and drop it out when you calculate the average. You will need to disp ...

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 ...

Programming lab assignment set awhat to submitcomplete

Programming Lab Assignment (Set A) What to Submit Complete Problem Solving Steps 1 - 3 (check plan, data analysis, initial algorithm, and refinement algorithm) for the following programs. 1. (Name: lab1a-1.cpp) Write a p ...

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 ...

Integrative programmingassignment- managing a user account

Integrative Programming Assignment- Managing a User Account List Objective: To manage a user list that can be modified and saved to a text file. Inputs: • Input text file consisting of pairs of usernames and passwords, s ...

1 tic tac toein a tic tac toe game two players x and o take

1 TIC TAC TOE In a Tic Tac Toe game two players, X and O, take turns to mark the spaces in a 3X3 grid. The winner will be the player who first succeeds in placing three of his/her marks in a horizontal, vertical, or diag ...

Write a program to test for the case of a math equation

Write a program to test for the case of a math equation entered via the keyboard using the SWITCH-CASE operator. Types of equations to test for: x + y  x / y   x * y and x - y. The program is to ask for the following: 1. ...


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 ...

1 construct a markov algorithm that will reverse the order

1) Construct a Markov Algorithm that will reverse the order of an input string that consists of zero or more upper case letters. ABCDE should become EDCBA, AB should become BA, A should stay A, and A should stay A. NOTE: ...

  • 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