Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- ARR DW 1,2,4,5,6,? ;Declare a array
- .CODE
- MAIN PROC
- MOV AX, @DATA
- MOV DS,AX ;Moves data in data segment
- MOV ES, AX
- STD ;Set Direction flag
- LEA SI, ARR+8
- LEA DI, ARR+10
- MOV CX,3
- REP MOVSW ;Moves word content
- MOV SI,4
- MOV AX,3
- STOSW ;Moves contents of AL to byte address given by ES
- MOV CX, 6
- XOR SI, SI
- LOP:
- MOV DX,ARR[SI]
- ADD DX,48
- MOV AH,2
- INT 21H
- ADD SI,2
- LOOP LOP
- MAIN ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement