Friday, 28 April 2017

Assembly Language - string convert - Lowercase , Uppercase

Assembly code : Convert String  - Lower Case , Upper Case

Assembly program, Assembly code, Assembly coding, convert, Lowercase, Uppercase, Lower case, Upper case, capital letter, string convert, character convert, print the small character into capital letter, conversion of characters in assembly language programming 8086, emu8086, programming 8086 assembly language conversion of small characters to capital, assembly language programming, assembly language, assembly programming.

Assembly Language 8086 convert small character to capital letter






;CREATE A PROGRAM THAT WILL ASK FOR A SMALL LETTER
;AND OUTPUT IT IN CAPITAL LETTER



@pc macro char
mov ah,02h
mov dl,char
int 21h
endm

@ps macro st
mov ah,09h
lea dx,st
int 21h
endm


cseg segment para 'code'
assume cs:cseg;ss:cseg;ds:cseg;es:cseg
org 100h

start: jmp begin

dianacustodio db ?
str1 db 'Input a character: $'
str2 db 10,13,'Output: $'


begin:
mov ax,03h    ;clear
int 10h        ;clear

@ps str1    ;input a char

mov ah,01h    ;interrupt for inputing a char
int 21h


mov dianacustodio,al ;put the character from al register to dianacustodio variable

cmp dianacustodio,97    ;compare if the character inside the dianacustodio variable is greaterthan or equal to 97(ASCII)
jge covert_now ;if greater than or equal to 97,then jump to convert_now label.

cmp dianacustodio,123
jge exit ;if 123 or greater, terminate the program

cmp dianacustodio,96
jle exit ;exit again if the input is not a small character

convert_now:
sub dianacustodio,32 ;subtract 32 decimal to convert the character to capital
@ps str2
@pc dianacustodio ;then print

exit:

int 20h
cseg ends
end start






  emu8086 is better than NASM, MASM or TASM

Tag: 8086 Assembler, 8086 microprocessors instruction, assembly code, Assembly coding, assembly guide, assembly instruction, assembly language, assembly language instruction set, assembly language programming, Assembly program, assembly programming, capital letter, character convert, complete 8086 instruction sets microprocessors, complete instruction timing and instruction sets for 8086 microprocessors, conversion of characters in assembly language programming 8086, convert, emu8086, instruction complete set, instruction set complete for 8086, instruction sets, instruction sets for 8086, Lower case, Lowercase, print the small character into capital letter, programming 8086 assembly language conversion of small characters to capital, small letter , string convert, Tutorial, Upper case, Uppercase, Text string


Assembly Language : 8086 Assembler Tutorial Part 9

Assembly Language : 8086 Assembler Tutorial Part 8

Assembly Language : 8086 Assembler Tutorial Part 7

Assembly Language : 8086 Assembler Tutorial Part 6

Assembly Language : 8086 Assembler Tutorial Part 5

Assembly Language : 8086 Assembler Tutorial Part 4

Assembly Language : 8086 Assembler Tutorial Part 3

Assembly Language : 8086 Assembler Tutorial Part 2

Assembly Language : 8086 Assembler Tutorial Part 1


Assembly Language - string convert - Lowercase , Uppercase

for programming : the language of Number

Assembly Language - Complete Instruction Set and Instruction Timing of 8086 microprocessors

Assembly Language programming : A list of emulator supported interrupts

Assembly Language Programming : Emu8086 Overview, Using Emulator, Virtual Drives


buy me  a cup of coffee

My Paypal Account is :  ksw.industries@gmail.com

Send me any small amount of money is welcome.
buy me  a cup of coffee

 ___________________________________________


Need More Detail ?   contact me !!


My Paypal Account is :   ksw.industries@gmail.com
buy me  a cup of coffee
Send me any small amount of money is welcome.

___________________________________________


Don't know how to send money ?   Click here for detail about Paypal account.
About PayPal Payment Methods

What type of PayPal accounts is better.
 


Don't have money? OK! Here is another way to get the program.
how to get my program - Free of charge







No comments:

Post a Comment