̳
" "
" "



6
:
c
: 11










²-2008


:
.8086
.model small
.stack 100h
product struc
pname db 20 dup(' ')
pcode dw 0
number dw 0
datey dw 0
datem db 0
dated db 0
product ends
.data
numb equ 5
prod product <"Sugar", 16, 76, 2008, 8, 26>
product <"Solte", 82, 10, 2009, 12, 7>
product <"Coca-cola", 67, 89, 2007, 9, 1>
product <"Sossege", 23, 20, 2008, 7, 19>
product <"Soda", 67, 49, 2008, 7, 27>
code dw 67
count dw 0
.code
.startup
xor si, si
xor ax, ax
mov bx, code
mov cx, numb
@1: cmp prod[si].pcode, bx
jne @2
inc ax
@2: add si, type prod
loop @1
mov count, ax
.exit 0
end @startup