Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

USING x86 Complete the function to check whether a given character is a vowel (a,e,i,o,u), a consonant (any english-alphabet letter that its not a vowel),

USING x86 Complete the function to check whether a given character is a vowel (a,e,i,o,u), a consonant (any english-alphabet letter that its not a vowel), or neither.image text in transcribed

Perform a rotation of the 4 most significant nibbles of x, according to the value of r. If r=1 rotate by 1 position, if r=2 rotate by 2 positions, and if r=3 rotate by 3 positions. The 2 least significant bytes always remain the sameimage text in transcribed

PART 1: Given a character determine if it's a vowel, a consonant, or neither. If the character is :a vowel return 1, if it is a consonant return -1, if it's neither return 0. Lower and Upper case letters are allowed :Implementation details: : The input integer is stored in registers CL. You need to store the answer into register EAX. :Hint: : All the possible input values are in the ASCII table (http://www.asciitable.com.Looking at :it may help you define your conditional statements. int characterCheck(unsigned char character) int output; asm :mov eax, 2 mov cl, character // YOUR CODE STARTS HERE //YOUR CODE ENDS HERE mov output, eax return output

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