Your SlideShare is downloading. ×
Session 9  4 alp to display the current system time using dos int 21 h
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Session 9 4 alp to display the current system time using dos int 21 h

470

Published on

MCSL 017 Assembly Language Programming Lab Programs

MCSL 017 Assembly Language Programming Lab Programs

Published in: Education
1 Comment
0 Likes
Statistics
Notes
  • Sir Could you Please upload BCSL-022 FOR THIS SESSION 2013-14.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
470
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Write a program to display the current system time using DOS INT 21H, function 2CH.macro putc cmov dl, cmov ah, 2int 21hendm.model small.datamsg db 10,13,The current time is:$.stack 100.codemov ax, @datamov ds, axmov ah, 2chint 21hpush dxmov al,chaamadd ax, 3030hmov bx, axputc bhputc blputc :mov al,claamadd ax, 3030hmov bx, axputc bhputc blputc :pop cxmov al,chaamadd ax, 3030hmov bx, axputc bhputc blputc :mov al,claamadd ax, 3030hmov bx, axputc bhputc blmov ah, 4chint 21hend

×