Question: Can you answer this in a asm code please? The following video shows a procedure called isUpper that checks to see if an uppercase character
Can you answer this in a asm code please? The following video shows a procedure called isUpper that checks to see if an uppercase character passed to it in the al is uppercase.
Video isUpper
Use the information from the above video to create the following procedures
isUpper you should pass the character to test in the al and return in the eax if the character is not an uppercase character and one if it is
isArithmetic you should pass the character to test in the al and return in the eax if the character is not an arithmetic operator and one if it is
isVowel you should pass the character to test in the al and return in the eax if the character is not a vowel and one if it is a vowel a e i o u A E O I, U
In main create some code to test your functionality. You should enter a character and test to see if it is a vowel, an arithmetic operator, or a digit character. You should also report if it is something else, like a punctuation character. Your code must allow for a singlecharacter input.
Sample Run :
Enter a character
is a digit
Sample Run :
Enter a character
A
is a vowel
Sample Run :
Enter a character
is arithmetic
Sample Run :
Enter a character
C
Not a vowel, digit or arithmetic character. Must be something else.
You are not allowed not use IF and ELSE constructs.
Your procedures should NOT have any writeString or writeLine calls in them. Your procedures should also not use any global variables. A global variables is a variable defined in the data segment of the program.
The use of legacy directives like DB and DW is not allowed in this class. A deduction of will be given if you use them.
The use of indirect addressing around variables is NOT allowed in the class unless you are using indirect addressing. An example of this would be val Doing this will result in a reduction in your grade.
You are also required to comment every line of code you write. Failure to do so will drop your grade
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
