Data Segment
arr db 33,45,12,03,01
Data Ends
Code Segment
Assume cs:code, ds:data
Begin:
mov ax, data
mov ds, ax
mov es, ax
mov cx, 5
lea si, arr
L1:
mov ah, 00
mov al, [si]
cmp al, 30
jg Greater
Not_Greater:
add al, 20
mov [si], al
inc si
loop L1
Greater:
add al, 10
mov [si], al
inc si
loop L1
Exit:
mov ax, 4c00h
int 21h
Code Ends
End Begin