Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //largest
- data segment
- array db 01h,02h,03h,04h,05h,06h,07h,08h,09h,10h,20h,30h,40h,50h,0ah,0bh,0ch,0dh,0eh,60h
- largest db ?
- data ends
- code segment
- assume cs:code,ds:data
- start: mov ax,data
- mov ds,ax
- mov cl,13h
- lea si,array
- mov al,[si]
- up: inc si
- mov bl,[si]
- cmp al,bl
- jnc down
- mov al,bl
- down: dec cl
- jnz up
- mov largest,al
- int 03h
- code ends
- end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement