Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MUST BE WRITTEN IN H1 ASSEMBLY CODE ex4-14. Write and run an assembly language program that displays all the odd hexadecimal numbers from hexadecimal 1

MUST BE WRITTEN IN H1 ASSEMBLY CODE

ex4-14. Write and run an assembly language program that displays all the odd hexadecimal numbers from hexadecimal 1 to some hexadecimal number in ascending order. Prompt and input from the user what the limit hexadecimal number will be. Use a loop with a label to loop through the hexadecimal numbers up to that hexadecimal number. The final printout will print the odd hexadecimal numbers 1 through your input hexadecimal number with a space between each hexadecimal number and then on a separate line print your name after all the hexadecimal numbers. Run your program with the user inputting the ending hexadecimal number 1b.

Hint: Make the counter starting at 1 be a hexadecimal counter.

Input:

Enter ending hexadecimal number: 1b

Output:

0001 0003 0005 0007 0009 000B 000D 000F 0011 0013 0015 0017 0019 001B

Mark Smith (replace with your name)

Assemble the program, then run in the simulator without the debugger.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions