Question: Lab 9 : ASCII Converter Max Grade: 2 5 Points Page 1 of 1 Assignment: Design and demonstrate a 6 8 HC 1 1 program
Lab : ASCII Converter Max Grade: Points
Page of
Assignment:
Design and demonstrate a HC program to perform as an ASCII Code Converter that will accept and display a
user input key with its equivalent ASCII code as a digit hexadecimal number. You should be valid for any typeable
ASCII character.
Example:
If you press the character C your program should display the following C $
The program should also:
Display a greeting message with usage instructions
Display a prompt
Accept and display a single user input character
Display $with spaces
Output the digit hexadecimal code for the ASCII character typed
Advance to a new line
Repeat from step
Requirement:
You are to make use of a subroutine ie for step
You may only use the flowing BUFFALO subroutines for this lab: INCHAR, OUTA, OUTSTRG, and OUTSTRG
You CANNOT use the BUFFALO subroutines which convert to HEX for you. will result in Zero grade
Must include Flowchart or pseudo code evidence of the program design use created. DO YOUR DESIGN
FIRST, then code from the design.
In your solution, create a NumToHex subroutine, which takes the lower bits of ACCA ONLY, and outputs the
ASCII character through and A through F corresponding to the lower nibble binary value. ie output the
HEX digit for the lower nibble value.
In your solution, create another subroutine OUTHEX, which takes an bit value in Accumulator A and uses the
NumToHex subroutine you wrote to output both the high nibble and the low nibble of the bit value.
Grading Rubric:
pts Program Works and Output matches the output format shown in the procedure. Program operation works
according to the requirements.
pts Comments are not redundant but explain how or why the instruction is needed andor what it does. If a small
group of instructions works together, they can have one comment telling what the group does. Template comments for
header, main and subroutine descriptions are included, and appropriate and subroutine parameters are described.
pts Equates, Code, and Variables are placed in correct sections of the Assembly template.
pts Cover Page is Correctly filled in
pts Listing file is neat. Instruction columns Line up Listing is printed in CONDENSED format.
pts All other Requirements in procedure have been fulfilled.
pts Design matches Requirements, works. Code matches Design.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
