answersLogoWhite

0


Best Answer

inc bx ; next char.

loop upper_case

; int 21h / ah=09h - output of a string at ds:dx.

; string must be terminated by '$' sign.

lea dx, string+2

mov ah, 09h

int 21h

jmp start ; loop

; wait for any key press....

mov ah, 0

int 16h

null:

ret

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Assume 5 data store starting from memory location C101H. Performing Binary to Gray Code conversion and store the gray code in the memory location starting from C111.

Input:

LXI H,C101H

LXI D,C111H

MVI C,05H

NXT: MOV A,M

MOV B,A

STC

CMC

RAR

XRA B

STAX D

INX H

INX D

DCR C

JNZ NXT

RST 1

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an assembly language program to convert lowercase to uppercase?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Java program to convert lowercase to uppercase?

You can use the toUpperCase() method on a String to convert any String to all uppercase.


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.


How do you translate pascal language to assembly language?

Why would you want to do that? The usual procedure is to translate a high-level language such as Pascal to machine language. If you really want assembly language - perhaps to see how the Pascal compiler does its work - then presumably you can use a disassembler to convert the machine language (the executable file) into assembly language.


How to convert lowercase to uppercase in java?

In Java you can invoke the toUpperCase()method on a string to convert it to a new string with all upper case characters.For example, "abc".toUpperCase() returns "ABC"Likewise, the static Character.toUpperCase(char ch) method takes a single character and returns the upper-case equivalent of that character (e.g. 'a' -> 'A').


Write a function that will scan a character string passed as an argument and convert all lowercase letters onto uppercase letters?

/* Write a function that will scan a character string passed as an argument & convert all lowercase characters into their uppercase characters*/ #include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> int str_upp(char c[]) { int i; char x; printf("\n \n"); for(i=0;i<strlen(c);i++) { x=toupper(c[i]); printf("%c",x); } return (0); } void main() { char c[10]; clrscr(); printf("Enter string : \n"); scanf("%s",c); str_upp(c) ; getch(); } /* Output: Enter string : Heloo HELOO */

Related questions

Java program to convert lowercase to uppercase?

You can use the toUpperCase() method on a String to convert any String to all uppercase.


How do you convert uppercase to lowercase and vice versa in c?

with toupper and tolower, from ctype.h


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.


Name all the software package convert assembly language to machine language?

Assembler.


How would you define assembly language?

assembly language uses abbreviation called menmonics.it is a bit easier to write computer programs in assembly language as compared to machine language but still requires skill and experienci.A program called assembler is used to convert an assembly language into machine language.


Why you use assembler?

Assemblers are used to convert a specific assembly language into bytecode.


Why use assembler?

Assemblers are used to convert a specific assembly language into bytecode.


How do you translate pascal language to assembly language?

Why would you want to do that? The usual procedure is to translate a high-level language such as Pascal to machine language. If you really want assembly language - perhaps to see how the Pascal compiler does its work - then presumably you can use a disassembler to convert the machine language (the executable file) into assembly language.


Are machine language and assembly language the same?

No, they are not the same. Assembly language uses mnemonic words to REPRESENT machine language; to be able to actually run it, a special program - a so-called assembler - then needs to convert it into machine language.


How do you write a C program to input a string of lowercase alphabets and convert it to uppercase using a loop?

void to_uppercase (char* str) { if (str == 0) return; while (*str != '\0') { if (*str>='a' && *str<='z') *str-=32; ++str; } }


How do you convert binary to hexadecimal using assembly language?

In order to convert binary to hexadecimal using assembly language, the programmer must possess an understanding on boolean algebra or binary system in other words. A compiler is also needed to complete the program.


Free software to convert hex code into assembly language?

"http://wiki.answers.com/Q/Free_software_to_convert_hex_code_into_assembly_language"