hex $
code segment
mov ax, data
mov ds, ax
mov es, ax
mov dx, offset text1
mov ah, $0A
int $21
mov al, 'A'
mov si, 'A'
mov bx, offset text3
tryagain:
mov cx, size text1
mov cx, [bp]
mov di, offset text1 + 2
REPNZ scasb
jnz Nextapha
inc si
inc al
cmp si, 90
jg tryagain
jmp exit
Nextapha:
mov [bx], si
inc bx
inc al
inc si
cmp si, 90
jg tryagain
exit:
mov dx, offset NEWLINE
mov ah, $09
int $21
mov dx, offset text3
mov ah, $09
int $21
mov ax, $4c00
int $21
code ends
data segment
text1 db 100 dup('$')
text3 db 26 dup('$')
NEWLINE DB 10,13,'$'
data ends
I want my program to print out those which are not int the inputted text


Sign In
Create Account


Back to top









