data segment
first dw 3456h
second dw 0abcdh
ans dw 0000h
data ends
code segment
assume cs:code, ds:data
start :
mov ax, data
mov ds, ax
mov ax, first
and ax, 00ffh
shl ax, 08h
mov bx, second
and bx, 00ffh
or ax, bx
mov ans, ax
mov ax, 4c00h
int 21h
code ends
end start