Home > database >  Masm2015 suspected 09 h problem solving
Masm2015 suspected 09 h problem solving

Time:09-30

Masm assembly language problems
Lowercase string into capital letters, although become successful, but why there are vast gibberish after the results?
DATAS SEGMENT
VAR DB 'This is the assembly language'
VAR1 50 DB DUP (?)
DATAS ENDS

Sports a SEGMENT
The DB 128 DUP (?)
Sports a ENDS

CODES SEGMENT
ASSUME CS: CODES, DS: DATAS, SS: sports a
START:
MOV AX, DATAS
MOV DS, AX
CX, MOV 25
XOR DX, DX
LEA SI, VAR
LEA DI, VAR1
MOV AL, [SI]
L1:
MOV AL, [SI]
CMP AL, 61 h
JAE L2
MOV (DI), AL
INC SI
INC DI
LOOP L1
L2:
MOV AL, [SI]
CMP AL, 7 ah
JB L3
MOV (DI), AL
INC SI
INC DI
LOOP L1
L3:
SUB AL, 20 h
INC SI
MOV (DI), AL
INC DI
LOOP L1
LEA DX, VAR1
MOV AH, 09 h
INT 21 h

MOV AH, 4 ch
INT 21 h
CODES ENDS
The END START

CodePudding user response:

No man see me, please feel easy
  • Related