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

Assignmentanalyze each problem develop a solution and

Assignment Analyze each problem, develop a solution and implement your solution. Copy and paste your program and a sample output below each problem. Define the class Point in a rectangular coordinate system. This class m ...

Program 1 write a program that asks user to enter a year

Program 1: write a program that asks user to enter a year and this program checks whether that year is leap year or not. Also it should print out all a calendar for the year entered. Starting on Monday Jan 1st, 1900. Cha ...

Programming project assessmentinstructions the following

Programming Project Assessment Instructions: The following programming problem can be solved by a program that uses three basic tasks-Input Data, Process Data, and Output Results. To process the data, use file, looping, ...

Question 1 batteriesi want to use a galvanic cell to power

Question 1: Batteries I want to use a galvanic cell to power a 60-watt light bulb. Complete the following steps to determine how long the galvanic cell will power the light bulb before running out. a.) The galvanic cell ...

Write a gui application that prints out hello in either

Write a GUI application that prints out "Hello!" in either: English, French, or Spanish. When the user selects another language, the greeting shown in the greeting area should change. Your GUI should look like the interf ...

Rainfall programwrite a rainfall program that stores the

Rainfall Program Write a RainFall program that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following: * The total rainfall for the year * The ...

Provide a recursive definition of some sequence of numbers

Provide a recursive definition of some sequence of numbers. Choose one different from that of any posted thus far. Write a recursive method that given n, computes the nth term of that sequence. Also provide an equivalent ...

Assignmentthe assignment is as follows use the program

Assignment The assignment is as follows: Use the program, Arrays of Pointers, on p. 188 of the text "Ch. 4, of Ivor Horton's Beginning Visual C++ 2010" as a starting point for this assignment. Refer to Appendix C for ful ...

Lab assignmentwe begin our investigation of object-oriented

Lab Assignment We begin our investigation of object-oriented programming by creating an object-oriented program with a class called Employee. You will create two objects based on the Employee class, along with a class th ...

Assignemntbulla non-gui based java application that

Assignemnt •A non-GUI based Java application that fulfills the requirements listed below. All output should be to the console/standard output. •Salespersons for Big State Books receive a commission of ten percent for eac ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro