Program
Program
data segment
a dw 9A88h
b dw 8765h
c dw ?
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ax,a
mov bx,b
sub ax,bx
mov c,ax
int 3
code ends
end start
OUTPUT :
C:\TASM>masm an16sub.asm
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987. All rights reserved.
0 Warning Errors
0 Severe Errors
C:\TASM>link an16sub.obj
C:\TASM>debug an16sub.exe
-g
C:\TASM>
SINP:
C