subject

Hello, this is a 2 part question for my beginning assembly class. Thank you in advance for your help

Boolean Calculator (1)

Create a program that functions as a simple boolean calculator for 32-bit integers. It should display a menu that asks the user to make a selection from the following list:

1. x AND y

2. x OR y

3. NOT x

4. x XOR y

5. Exit Program

When the user makes a choice, call a procedure that displays the name of the operation about to be performed.

Boolean Calculator (2)

Continue the solution program from the preceeding exercise by implementing the following procedures:

- AND_op: Prompt the user for two hexadecimal integers. AND them together and display the result in hexadecimal.

-OR_op: Prompt the user for two hexadecimal integers. OR them together and display the result in hexadecimal.

- NOT_op: Prompt the user for two hexadecimal integers. NOT the integer and display the result in hexadecimal.

- XOR_op: Prompt the user for two hexadecimal integers. Exclusive-OR them together and display the result in hexadecimal.

The following is what our professor has given us help with:

Include Irvine32.inc

.data
msgMenu " Boolean Calculator ", 0dh, 0ah
BYTE 0dh, 0ah
BYTE "1. x AND y" , 0dh, 0ah
BYTE "2. x OR y" , 0dh, 0ah
BYTE "3. NOT x" , 0dh, 0ah
BYTE "4. x XOR y" , 0dh, 0ah
BYTE "5. Exit program" , 0dh, 0ah, 0dh, 0ah
BYTE "Enter integer>" , 0

msgAND BYTE "Boolean AND", 0
msgOR BYTE "Boolean OR", 0
msgNOT BYTE "Boolean NOT", 0
msgXOR BYTE "Boolean XOR", 0

msgOperand1 BYTE "Input the first 32--bit hexadecimal operand: ", 0
msgOperand2 BYTE "Input the second 32--bit hexadecimal operand: ", 0
msgResult BYTE "The 32-bit hexadecimal result is: ", 0

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 22.06.2019 07:30
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
You know the right answer?
Hello, this is a 2 part question for my beginning assembly class. Thank you in advance for your help...
Questions
question
Mathematics, 02.02.2021 05:00
question
English, 02.02.2021 05:00
question
Mathematics, 02.02.2021 05:00
Questions on the website: 13722363