Link to home
Start Free TrialLog in
Avatar of eylkrn
eylkrn

asked on

2digit number printing in assembler

Hello,

I want to display the clock on the screen
i'm using
mov ah,0
int 1ah

CX get the hours and dx get the minutes.

Now , How can I display 2-digit number which in cx and dx on the screen?

Regards,
Eyal Keren

BTW - without dividing by 10
SOLUTION
Avatar of StillUnAware
StillUnAware
Flag of Lithuania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eylkrn
eylkrn

ASKER

Hi  grg99 '

My masm 6.15 doesnt recognize the "jlt Done".
is there any replacement for the jlt?

Regards,
Eyal
Avatar of eylkrn

ASKER

Hi  grg99 !

how stupid I am, jlt - Jump Less Than --> is-- >  jng - Jump Not Greater
 Hi  grg99 '
Eyal

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eylkrn

ASKER

oK,
thanks Dawaffleman and grg99.
Avatar of eylkrn

ASKER

ah,
and thanks for StillUnAware  too..