T
For starters, you'll learn how. http://www.codenet.ru/progr/dos/dos_0018.php ♪ Incorporate all members of the structure, describing them first correctly (i.e. the first byte, specify the maximum length of the field, and remember that the second byte field will record the real length of the entry).Use it for withdrawal http://www.codenet.ru/progr/dos/dos_0067.php ♪ As a buffer, give her a field+2 address, as a length, a second white field. And after each field has been removed, you'll have to remove the CR/LF, no matter how.That's how it's going to be..model tiny
.code
org 100h
start:
mov dx, offset student.s_name
call input
mov dx, offset student.s_spec
call input
mov cl, [student.s_name+1]
lea dx, student.s_name+2
call print
mov cl, [student.s_spec+1]
lea dx, student.s_spec+2
print:
xor ch, ch
mov bx, 1
mov ah, 40h
int 21h
crlf:
mov dx, offset cr_lf
mov ah, 09h
int 21h
ret
input:
mov ah, 0Ah
int 21h
jmp short crlf
students struc
s_name db 10, 0, 20 dup(?)
s_spec db 10, 0, 20 dup(?)
students ends
student students <>
cr_lf db 0Dh, 0Ah, '$'
end start
end