![]() We take an empty string, and use the "loop" word to create a new character using "'a n:+". bss buf: resb 27 Buffer to store the alphabet in 8th loop mov al, ' $ ' MS-DOS string terminator stosb ret demo: mov di, buf Pointer to buffer call alph Generate the alphabet mov dx, buf Print the contents of the buffer mov ah, 9 int 21 h ret section. loop: stosw Store AX at ES:DI and add 2 to DI add ax, 202 h Add 2 to both bytes (CD, EF. text jmp demo Store the lowercase alphabet starting at ĝestroys AX, CX, DI alph: mov cx, 13 2*13 words = 26 bytes mov ax, ' ab ' Do two bytes at once. 9.2 Example with / without space using CL_DEMO_OUTPUT classīits org 100 h section.9.1 Example with simple write statement.Split a character string based on change of character.Find words which odd letters are consonants and even letters are vowels or vice_versa.Find words which first and last three letters are equals.Find words which contains more than 3 vowels.Find words which contains most consonants.Find words which contains all the vowels.Longest substrings without repeating characters.Determine if a string has all the same characters.Determine if a string has all unique characters.Sum of the digits of n is substring of n.Strip control codes and extended characters from a string.Strip whitespace from a string - top and tail.Strip a set of characters from a string.Count how many vowels and consonants occur in a string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |