(Solved) : Using Assembly X86 Include Irvine32inc Include Macrosinc Data Msg Byte Csc221 Cuel World C Q42717089 . . .

using Assembly x86

INCLUDEIrvine32.inc

INCLUDE macros.inc

.data

msg BYTE “csc221 – such a cuelworld”

.code

main proc

mov eax, 0

; look at firstcharacter

mov al, [msg+0]

; test in char >= to’a’

cmp al, ‘a’ ; firstexpression…

jae A1

jmp next

A1:

cmp al,’z’ ; secondexpression…

jbe A2

jmp next

A2: ; both are true

;mwrite “found lower caseletter”

and al,11011111b

call WriteChar

next:

; test in char >= to’0′

cmp al, ‘0’ ; firstexpression…

jae N1

jmp skip

N1:

cmp al,’9′ ; secondexpression…

jbe N2

jmp skip

N2: ; both are true

;mwrite “founddigit”

and al,00001111b

mov ebx, TYPE BYTE

call WriteBinB

  

skip:

exit

main ENDP

END main

Write a program that prompts the user for a string of ASCII characterReads in the string (ReadString & no more than 50 characWrite a program that prompts the user for a string of ASCII characterReads in the string (ReadString & no more than 50 characters)Then for each character in the string If the character is lower case then convert to upper case If the character is a numerical (‘O’-‘9’) convert to binary If either one of the above then print out the resulting value (using either WriteChar or WriteBinB (1 byte)} Show transcribed image text Write a program that prompts the user for a string of ASCII characterReads in the string (ReadString & no more than 50 characters)Then for each character in the string If the character is lower case then convert to upper case If the character is a numerical (‘O’-‘9’) convert to binary If either one of the above then print out the resulting value (using either WriteChar or WriteBinB (1 byte)}

Expert Answer


Answer to using Assembly x86INCLUDE Irvine32.inc INCLUDE macros.inc .data msg BYTE “csc221 – such a cuel world” .code main proc mo…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?