- Forum posts: 1
Nov 5, 2021, 10:44:46 AM via Website
Nov 5, 2021 10:44:46 AM via Website
In a 20-character feed, count the number of a characters A.
Nov 5, 2021, 10:44:46 AM via Website
Nov 5, 2021 10:44:46 AM via Website
In a 20-character feed, count the number of a characters A.
Nov 5, 2021, 12:58:41 PM via Website
Nov 5, 2021 12:58:41 PM via Website
assume ds:data,cs:code,ss:stack
data segment
str db 'AbBTo09A1ACAHjsjidsa','$'
count db 0
data ends
stact segment para stack
buffer db 128 dup(0)
stact ends
code segment
start:
mov ax,data
mov ds,ax
mov cl,0
lea si,str
lp1:
mov al,[si]
cmp al,'A'
jz sum
cmp al,'$'
jz exit
inc si
jmp lp1
sum:
inc cl
inc si
jmp lp1
exit:
mov count,cl
mov ah,4ch
int 21h
code ends
end start
Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.