Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a C++ program that uses a menu to access and solve the missing tables values. You're going on a treasure hunt to find the

Design a C++ program that uses a menu to access and solve the missing tables values. image text in transcribed
You're going on a treasure hunt to find the flag(s)! Design a program that uses a menu to access your clues and solve the missing table values object PROGRAM FEATURES MAIN MENU (lab 6-7) 1. Treasure Hunt Clues 2. Exit program II. SUBMENU/Treasure Hunt clues (lab 6-7) 1. Subtraction 2. Bit swapping 3. Compare (CAMP) two operands and find flag values 4. Return to main menu 1) SUBTRACTION (lab 6-7)- repurpose small portion of original assignment i. CONSOLE INPUT: Enter two integers Input 1st integer 32 e il. clue a1 Input 2nd integer 19 Decimal (value) HEx (value) CONSOLEOUTPUT: Result and BIT swAPPING (lab 2) small portion of original assignment as value for this step i. Take output HEx repurpose use it value result from suBTRACTION clue and 2) ii. This output HEX value will be a letter letter will be used in your code with an uppercase and lower case version iii. This HEx iv. 8-bit value only v. Use BX register vi, output needs to show values before and after swapping vii clue w2 coNsoLE ouTPUT: rite down value of output of low byte number after swapping 3) COMPARE (lab 5) repurpose original assignment i. CONSOLE INPUT: Enter two integers ii. Use low byte value obtained from BIT SWAPPING clue output 2-digit number iii. Use first number of this 2-digit number as 1st operand and second number of samelow byte value as 2nd operand 4) Find Flag values for Carry and Zero flags after running above values. Then, fill out the treasure table. TREASURE TABLE Carry Flag Operand 2 Zero Flag Operand 1 You're going on a treasure hunt to find the flag(s)! Design a program that uses a menu to access your clues and solve the missing table values object PROGRAM FEATURES MAIN MENU (lab 6-7) 1. Treasure Hunt Clues 2. Exit program II. SUBMENU/Treasure Hunt clues (lab 6-7) 1. Subtraction 2. Bit swapping 3. Compare (CAMP) two operands and find flag values 4. Return to main menu 1) SUBTRACTION (lab 6-7)- repurpose small portion of original assignment i. CONSOLE INPUT: Enter two integers Input 1st integer 32 e il. clue a1 Input 2nd integer 19 Decimal (value) HEx (value) CONSOLEOUTPUT: Result and BIT swAPPING (lab 2) small portion of original assignment as value for this step i. Take output HEx repurpose use it value result from suBTRACTION clue and 2) ii. This output HEX value will be a letter letter will be used in your code with an uppercase and lower case version iii. This HEx iv. 8-bit value only v. Use BX register vi, output needs to show values before and after swapping vii clue w2 coNsoLE ouTPUT: rite down value of output of low byte number after swapping 3) COMPARE (lab 5) repurpose original assignment i. CONSOLE INPUT: Enter two integers ii. Use low byte value obtained from BIT SWAPPING clue output 2-digit number iii. Use first number of this 2-digit number as 1st operand and second number of samelow byte value as 2nd operand 4) Find Flag values for Carry and Zero flags after running above values. Then, fill out the treasure table. TREASURE TABLE Carry Flag Operand 2 Zero Flag Operand 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago