6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 15, 2024 10:31 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 6526 time of day clock
PostPosted: Sat May 15, 2004 5:37 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
In the time of day clock in the 6526 do the hours go from 0 to 11 or from 1 to 12 ?

00:00:00 to 11:59:59 or

01:00:00 to 12:59:59


Rob


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 15, 2004 7:01 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
I found this data sheet for the chip.

http://www.surffi.net/~allu/shared/file ... ia6526.pdf

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Sat May 15, 2004 2:29 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1747
Location: Sacramento, CA
Rob Finch wrote:
In the time of day clock in the 6526 do the hours go from 0 to 11 or from 1 to 12 ?

00:00:00 to 11:59:59 or

01:00:00 to 12:59:59

Rob


Rob,

As I recall, it will run from 01:00:00 to 12:59:59. However, the AM/PM flag is the high bit of the hour register. I don't recall all the specifics.

I did write TOD print and TOD set commands for my SBC-1. If you go to the Downloads section of my website and download the sbcmonitor.zip file, there is a file included called 6526.asm that contains the assembly code.

http://65c02.tripod.com/

Hope this helps.

Daryl


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: