DATA SEGMENT USE16
BUF DW -10, -20, 0 ,10, 20 ,30, -50, 0, -78, 10
N = ($-BUF)/2
AVG1 DW 0 ;
AVG2 DW 0;
DATA ENDS
STACK SEGMENT STACK USE16
DB 200 DUP(0)
STACK ENDS
CODE SEGMENT USE16
ASSUME CS:CODE, SS:STACK, DS:DATA
START:
MOV AX, DATA
MOV DS, AX
MOV AH, 4CH
INT 21H
CODE ENDS
END START
BUF DW -10, -20, 0 ,10, 20 ,30, -50, 0, -78, 10
N = ($-BUF)/2
AVG1 DW 0 ;
AVG2 DW 0;
DATA ENDS
STACK SEGMENT STACK USE16
DB 200 DUP(0)
STACK ENDS
CODE SEGMENT USE16
ASSUME CS:CODE, SS:STACK, DS:DATA
START:
MOV AX, DATA
MOV DS, AX
MOV AH, 4CH
INT 21H
CODE ENDS
END START