it is necessary to read from one file, convert its sequence to lowercase, and then write the transformed sequence to another file. I do not know how to convert the sequence. Please provide an example of a code for converting a sequence! Program code (that is):

page 60,180 TITLE Lab7.asm ; ;--------------------------------------------------------------------------------------- DATASG SEGMENT PARA 'Data' filename db 'c:\L7_punkt12.txt',0 filename2 db 'g:\L7_punkt131.txt',0 filename3 db ? filenmae4 db 'L7_punkt133.txt',0 filename5 db 'c:\L7_punkt12.txt',1 value db 1 handle dw ? F1L7 db 'c:\F1_L7.txt',0 F2L7 db 'c:\F2_L7.txt',1 F3L7 db 'c:\F3_L7.txt',1 DATASG ENDS ;--------------------------------------------------------------------------------------- CODESG SEGMENT PARA 'Code' BEGIN PROC Preobrazovanie ASSUME SS: STACKSG, CS:CODESG, DS:DATASG, ES:NOTHING PUSH DS SUB AX,AX PUSH AX ;reading mov ah, 03Fh mov bx, F1l7 mov cx, recsize mov dx, offset buffer int 21h jc Error ;writitng mov ah, 40Fh mov bx, buffer mov cx, recsize mov dx, offset F2L7 mov ah, 03Eh int 21h jc Error BEGIN ENDP CODESG ENDS END BEGIN 
  • one
    If the character is between 41h and 5Ah add 20h to it, for the English alphabet. Characters of other languages ​​depending on the encoding - Mike
  • And what will it look like in code? - Alexandr

1 answer 1

If the character is in al , then something like

  cmp al, 41H jl low cmp al, 5AH jg low or al, 20H low: