Finding Maximum Value in Assembly -masm 8086

Finding Maximum Value in Assembly -masm 8086

org 100h
.model small
.data
ARR DB 1,2,5,8,10,25,45,0,3
arr_size = $ - offset ARR
max DB 0
.code
;Initilize Data Segment
mov ax,@DATA
mov DS,ax
;===========Moving Offset of arr=====
mov si,offset ARR
mov cx,arr_size
L:
mov ah,max
cmp [si],ah
jg ad
jmp last
ad:
mov al,[si]
mov max,al
last:
inc si
LOOP L
;to terminate Program
mov ah,4ch
int 21h
ret

Advertisements

5 thoughts on “Finding Maximum Value in Assembly -masm 8086

  1. I am not certain where you are getting your information, but great topic. I must spend a while learning much more or figuring out more. Thank you for wonderful info I was searching for this info for my mission.

    Liked by 1 person

  2. Nice weblog here! Also your web site loads up very fast! What web host are you the usage of? Can I am getting your affiliate hyperlink in your host? I desire my web site loaded up as quickly as yours lol

    Like

  3. I’ve been browsing online more than three hours today, yet I never discovered any fascinating article like yours. It is beautiful value sufficient for me. In my opinion, if all web owners and bloggers made excellent content as you probably did, the web can be a lot more helpful than ever before.

    Like

  4. I am no longer positive where you are getting your information, but good topic. I must spend a while studying much more or understanding more. Thanks for magnificent information I was looking for this information for my mission.

    Liked by 1 person

  5. Wow, fantastic blog layout! How long have you ever been running a blog for? you make running a blog look easy. The entire look of your website is fantastic, let alone the content material!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s