You cannot answer this question until you know why WhyOutPut1 has been answered.  On the other hand, if you can answer this, you certianly know the answer to WhyOutPut1

 

mov ah, 2ch

int 21h ; ch = hr, cl = min, dh = sec

mov bh, dh ; save the seconds

mov ah, 9h

mov dx, OFFSET timcvr

int 21h

mov al, ch

call Putdec ; it is 10 o'clock

mov ah, 2h

mov dl, SEP

int 21h

mov al, cl ; it is 30 min

call Putdec

 

What is the output?

 

Winner: Dan

 


Page Information

  • 6 months ago [history]
  • View page source
  • You're not logged in
  • Recent comments:
    Richard Glass:right
    Dan:The ax contains: 00011110 00000010 (30 2). Read as a 16 bit number, it is 7682.
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts