You are on page 1of 1

Assembly language digital clock

This task was chosen by group 1 consisting of following members.

 Arafat Ali Khan


 Rimsha Fiaz
 Hamza Mahmood
 Ahmad Moiz
 Hafiz Talha Ashfaq

DESCRIPTION

Using ah, 2ch function, current time is displayed.

Using MOV AH, 2CH


current Time is split into HH:MM:SS format as
CH contains hour value
CL register contain minutes value
DL contains seconds (not used in this code)

As no ASCII value exist more than 9 in 8086, division by 10 is done using BL register to split them
further for display purposes.
Addition of 30h is done to transform the ASCII values in decimals.

You might also like