Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include emu8086.inc
- org 100h
- mov CX, n
- lea SI, x
- mov BX, [SI]
- repeat:
- cmp [SI], BX
- jle stop
- mov BX, [SI]
- stop:
- add SI, 2
- loop repeat
- mov AX,BX
- print 'the maximum is='
- call print_num
- ret
- n dw 5
- x dw 1, -8, 10, -4, 2
- DEFINE_PRINT_STRING
- DEFINE_PRINT_NUM
- DEFINE_PRINT_NUM_UNS
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement