Jump to content
Sign in to follow this  
danwinslow

Date/Time

Recommended Posts

What are the strategies for maintaining date/time on an 8 bit? Are there any standard locations or do you set up your own and count ticks with an interrupt?

Share this post


Link to post
Share on other sites

time= int((peek(18)*65536+peek(19)*256+peek(20))/60)

 

this will count in seconds. Taken from Mapping the Atari

 

RTCLOCK 18,19,20

Edited by Plastron

Share this post


Link to post
Share on other sites

The above formula is for NTSC. For PAL, replace 60 with 50, or even better 49.86074561.

 

Or maybe you want the R-Time 8 cartridge: it has a battery-powered real time clock with real date and time.

Share this post


Link to post
Share on other sites

If I remember right, it's been about 10 years, using Atari's DOS XE has a date and time setting, both of which are recorded in file saves. The DOS XE menu will help you with the settings as a guide.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...