Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 100h
- arr dw 4,4,4,1,3,2
- push arr
- call MyProc
- MyProc:
- push bp
- mov bp, sp
- mov si, [bp + 4]
- mov cx, 6
- mov dx, 0
- Cycle:
- cmp [si], 5
- jb @F
- mov ax, [si]
- mov bl, 4
- div bl
- cmp ah, 0
- jne @F
- add dx, [si]
- @@:
- add si, 2
- loop Cycle
- pop si
- mov sp, bp
- pop bp
- ret 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement