PROGRAM 5: Big Number! Write an HLA Assembly language program that prompts for n, an int8 value, and then displays a repeated digit pattern starting with that number. The repeated digit pattern should show one n, two n-1s, three n-2s, ..., n-1 2s and n 1s. Shown below is a sample program dialogue. Gimme a decimal value to use for n: 5 Here's your answer: 544333222211111 Gimme a decimal value to use for n: 8 Here's your answer: 8776665555444443 222221 1111 (Hint: The digit pattern is too large to store into any datatype we have learned to date so I am expecting that you will use a loop to print individual digits, rather than store the complete number in a variable.) PROGRAM 6: Crazy 8s Game Write a program HLA (HIGH LEVEL ASSEMBLY LANGUAGE) that reads a set of three different numbers. Then by subtracting off tens, determine if any of the values ends in an eight. Continue looping as long as one of the numbers in the set ends in eight. Three sets with a value ending in eight wins the game! Shown below are sample program dialogues to help you build your program. Gimme a number: 20 Gimme a number: 12 Gimme a number: 44 Sorry Charlie! You lose the game! Gimme a number: 58 Gimme a number: 23 Gimme a number: 70 One of them ends in eight! Gimme a number: 1 Gimme a number: 12 Gimma a number: 28 One of them ends in eight! Gimme a number: 7 Gimme a number: 8 Gimme a number: 22 One of them ends in eight! You Win The Game! Gimme a number: 51 Gimme a number: 51 Gimme a number: 51 Sorry Charlie! You lose The Game! (Hint: This program is pretty complex with many different conditions to keep track of. I would recommend you write it first in C or Visual Basic and then translate your lines of code, one by one, into a assembly statements, just like our good friend mr. compiler does) (Hint: Since we don't really know how to do much math in Assembly yet, I am assuming you will loop down by subtracting ten to try to reach the value eight. If you hit exactly eight after taking off enough values of ten, you know you had an original value ending in eight. If you get to less than eight, you know the number did not end in eight.)
PROGRAM 5: Big Number! Write an HLA Assembly language program that prompts for n, an int8 value, and then displays a repeated digit pattern starting with that number. The repeated digit pattern should show one n, two n-1s, three n-2s, ..., n-1 2s and n 1s. Shown below is a sample program dialogue. Gimme a decimal value to use for n: 5 Here's your answer: 544333222211111 Gimme a decimal value to use for n: 8 Here's your answer: 8776665555444443 222221 1111 (Hint: The digit pattern is too large to store into any datatype we have learned to date so I am expecting that you will use a loop to print individual digits, rather than store the complete number in a variable.) PROGRAM 6: Crazy 8s Game Write a program HLA (HIGH LEVEL ASSEMBLY LANGUAGE) that reads a set of three different numbers. Then by subtracting off tens, determine if any of the values ends in an eight. Continue looping as long as one of the numbers in the set ends in eight. Three sets with a value ending in eight wins the game! Shown below are sample program dialogues to help you build your program. Gimme a number: 20 Gimme a number: 12 Gimme a number: 44 Sorry Charlie! You lose the game! Gimme a number: 58 Gimme a number: 23 Gimme a number: 70 One of them ends in eight! Gimme a number: 1 Gimme a number: 12 Gimma a number: 28 One of them ends in eight! Gimme a number: 7 Gimme a number: 8 Gimme a number: 22 One of them ends in eight! You Win The Game! Gimme a number: 51 Gimme a number: 51 Gimme a number: 51 Sorry Charlie! You lose The Game! (Hint: This program is pretty complex with many different conditions to keep track of. I would recommend you write it first in C or Visual Basic and then translate your lines of code, one by one, into a assembly statements, just like our good friend mr. compiler does) (Hint: Since we don't really know how to do much math in Assembly yet, I am assuming you will loop down by subtracting ten to try to reach the value eight. If you hit exactly eight after taking off enough values of ten, you know you had an original value ending in eight. If you get to less than eight, you know the number did not end in eight.)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education