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 19:30
Write a function processpeople() that takes the name of a file as a parameter. each line of the file corresponds to information about a person. in particular a line contains either a name (in the form lastname,firstname with no spaces in it) or a name (lastname,firstname) and a year. the function will process the file, creating a person object for each line in the file. the function will print information about each line as it processes it, as well as appending the new person object into a list. make sure to use person methods to display information rather than recreating the work you did for the first problem. once the entire file has been processed, the function returns the list of person objects created from the file. if the file is empty, the function should return an empty list. if the input file cannot be opened, the function should print a message to that effect and then return an empty list. the following shows what would be displayed for two example files which have been provided in the link. the file none.txt does not exist. note that your function must work on an arbitrary file that consists of valid lines. you cannot assume anything about the file except that it contains lines that have the format described above.
Answers: 2
question
Computers and Technology, 24.06.2019 18:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Is it possible to build a portal in real life?
Answers: 2
question
Computers and Technology, 25.06.2019 09:30
Network administration is concerned with which tasks? the installation and maintenance of network hardware and software the installation and maintenance of computer operating systems the diagnosis and repair of some types of computer hardware the monitoring of users' activity on a social networking site
Answers: 1
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, 13.03.2022 17:50
question
Mathematics, 13.03.2022 17:50
question
Computers and Technology, 13.03.2022 18:00
Questions on the website: 13722361