include irvine32.inc
.data
time word 0101011000111001b
hh word ?
mmm word ?
sss word ?
.code
main proc
mov eax,0;
mov ax,time;
shr ax,11;
mov hh,ax;
call writedec;
mov al,':'
call writechar;
mov ax,time;
shr ax,5;
and ax,111111b;
mov mmm,ax;
call writedec;
mov al,':'
call writechar;
mov ax,time;
and ax,11111b;
mov sss,ax;
shl sss,1;
mov ax,sss;
call writedec;
;mov al,':'
;call writechar;
exit;
main endp
end main