my project is dir with filter coded in asembly (MASM)
## Deliverables
I need a program coded in asembly for my micro project.
The program must be coded in MASM, the program will work like dir with filter.
Example if i enter test* program will list all files that starts with test in current [login to view URL] i need line by line comment because my time is [login to view URL] is one completly done project but i cant send this one bcs another student have send this one before.
Code:
code segment 'code'
assume cs:code
DTA db 60 dup (0)
main proc far
mov ax, cs
mov ah, 1ah
mov dx, offset DTA
int 21h
mov bx, 80h
xor ax, ax
mov al, es:[bx]
add bx, ax
inc bx
mov byte ptr es:[bx], 0
mov bx, 80h
add bx, ax
cmp byte ptr es:[bx], '*'
jne baraj_fajl
mov dx, 0
dot:
dec bx
cmp bx, 80h
jl proveri_dx
cmp byte ptr es:[bx], '\'
je proveri_dx
cmp byte ptr es:[bx], '.'
jne dot
mov dx, 1
cmp dx, 1
je baraj_fajl
mov bx, 80h
xor ax, ax
mov al, es:[bx]
add bx, ax
inc bx
mov byte ptr es:[bx], '.'
inc bx
mov byte ptr es:[bx], '*'
inc bx
mov byte ptr es:[bx], 0
mov bx, 80h
mov al, byte ptr es:[bx]
add al, 2
mov byte ptr es:[bx], al
fajl:
xor cx, cx
mov ah, 4eh
xor dx, dx
push ds
mov cx, es
mov ds, cx
mov dx, 0082H
int 21h
pop ds
cmp ax, 18
jne pecati
pecati:
mov bx, offset DTA+30
dec bx
nareden_fajl:
mov ah, 2
mov dl, 10
int 21h
mov dl, 13
int 21h
mov ah, 4fh
int 21h
cmp ax, 18
jne pecati
kraj:
mov ax, 4c00h
int 21h
main endp
code ends
end main
( dot means dot, fajl means file, pecati means print, nareden_fajl means next file, kraj means END )
I need something like this, this is the solution for my problem, but i cant send this code, soo i need new code based on this. I mean with same functions :)