I'm new to assembly and I don't understand why the emulator is skipping line 6 and not increment at line 7
Please explain to me I'm so lost in this:
org 100h
x db 1, 2, 3, 3, 5
mov SI, 0 ;index
mov AL, 0 ;max
mov AL, x[SI] ;assign max
mov SI, 1 ;initialize SI to 1
next:
cmp x[SI],AL
jg adding
inc SI
cmp SI,4
JNE next
hlt
adding:
mov AL,x[si]
inc SI
jmp next
here is an image, Al is suppose to be intitizailzed as x[0], which means its suppose to be 1, but i can see the value is 8B