title: Assembly system time DOS
body: <p>I wrote some code:</p>
  
  <pre><code>petla:
  mov ah,2
  int 1ah
  
  mov[sekunda], dh
  mov ah, [sekunda]
  mov cl, 4
  and ah, 11110000b 
  shr ah, cl  
  mov dl, ah
  add dl, '0'
  mov ah, 2
  int 21h
  
  mov ah, [sekunda]
  and ah, 00001111b   
  mov dl, ah
  add dl, '0'
  mov ah, 2
  int 21h
  
  jmp petla
  
  sekunda db 0
  </code></pre>
  
  <p>When I run this program shows me lot of values (seconds) looks like this:</p>
  
  <pre><code>12
  12
  12
  12
  12
  13
  13
  </code></pre>
  
  <p>How modify code to show only one time one values ( one seconds one value)?</p>
  
  <p>How I can modify code to show for example time every 5 sec?</p>
  
  <p>I need this to my main code where after x seconds  something will be changed.</p>