W DB -128 X DB 127 Y DB-100 R DB0 Z DD 0 DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK BEGIN:MOV AX,DATA MOV DS,AX MOV AL,X CBW MOV BX,AX MOV AL,W CBW SUB AX,BX MOV BL,10 IDIV BL MOV R,AH IMUL Y IMUL AX MOV WORD PTR Z,AX MOV WORD PTR Z+2,DX MOV AH,4CH INT 21H CODE ENDS END BEGINW DB -128 X DB 127 Y DB -100 R DB 0 Z DD 0 DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK BEGIN: MOV AX,DATA MOV DS,AX MOV AL,X CBW MOV BX,AX MOV AL,W CBW SUB AX,BX MOV BL,10 IDIV BL MOV R,AH IMUL Y IMUL AX MOV WORD PTR Z,AX MOV WORD PTR Z+2,DX MOV AH,4CH INT 21H CODE ENDS END BEGIN