DSEG SEGMENT
TEMP DB 4DUP(?)
DSEG ENDS
……
START:MOV CL,4
MOV CH,4
LEA SI,TEMP
L1: MOV DX,AX
AND DX,0FH
MOV BYTE PTR[SI],DL
INC SI
SHR AX,CL
DEC CH
JNZ L1
MOV DL,TEMP
MOV CL,TEMP+1
MOV BL,TEMP+2
MOV AL,TEMP+3
RET
.model small
.stack
.code
main proc far
mov ax,12345678H
mov dl,al
and dl,0fh
mov cl,4
rol ax,cl
mov dh,al
and dh,0fh
rol ax,cl
mov bl,al
and bl,0fh
rol ax,cl
mov cl,al
and cl,ofh
mov al,dh
mov ah,4ch
int 21h
main endp
end main