Home > other >  The second version of the assembly language programming
The second version of the assembly language programming

Time:11-01

From the keyboard input their names pinyin (lowercase input), the initials into capital output on the screen, after using assembly language
Strives for the big help, I was just a rookie
The data segment
Buf db 30
Real db?
STR db 30 dup (?)
The data ends
Code segment
Assume cs: code, ds: data
Start: mov ax, data
Mov ds, ax
Lea dx, buf
Mov ah, ah 0
Int 21 h
Sub STR, 20 h
Lea dx, STR
Mov ah, 9
Int 21 h
Mov ah, 4 ch
Int 21 h
Code ends
The end start
Have a look, almost I can't understand it all myself

CodePudding user response:

refer to the original poster XiGuang response:
from the keyboard input their names pinyin (lowercase input), the initials into the output on the screen, after capital in assembly language
Strives for the big help, I was just a rookie
The data segment
Buf db 30
Real db?
STR db 30 dup (?)
The data ends
Code segment
Assume cs: code, ds: data
Start: mov ax, data
Mov ds, ax
Lea dx, buf
Mov ah, ah 0
Int 21 h
Sub STR, 20 h
Lea dx, STR
Mov ah, 9
Int 21 h
Mov ah, 4 ch
Int 21 h
Code ends
The end start
See, almost I can't read

Hope to have a screenshot of the operation, I also don't know how to operate, like application written how to input and output their names

CodePudding user response:

Themselves suddenly understand, thank you, need not trouble you
  • Related