Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » Setting the clock in the afternoon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Setting the clock in the afternoon [message #12810] Thu, 16 August 2012 03:19 Go to previous message
rusure is currently offline  rusure
Messages: 1030
Registered: March 2012
Karma:
Senior Member
;when i run the c128 program below, the cia clock is
;set to a time in the wee hours of the morning. i am
;trying to set the hiorder bit of the cia hour register
;to 1, for an afternoon start time. can this be done?

;for a movie of the a program run, please go to
; https://docs.google.com/open?id=0B80L9cEZ8Ynvb29tQmM1ckJMdE0
;the binary and source files are zipped and avalable here
; https://docs.google.com/open?id=0B80L9cEZ8YnvYXhFUUtHWjhDNWM
*=$1c01
;10 sys7181
..dby $0b1c,$0a00
..byt $9e,'7181',$00,$00,$00
ldy #3
intiaz lda inicia,y
sta $dc08,y
dey
bpl intiaz
lda #$93;clear / home
read01 ldy #$03;cia hours, minutes, seconds, tenths
bplus jsr $ffd2
lda $dc08,y
jsr $b8c2;rom hex byte printer
lda #$3a;delimit cia bytes with colons
dey
bpl bplus
lda #$13
ldx $91;continue until r/s is pressed
bmi read01
rts
inicia .dby $0045,$5992
..end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Release: New version of VICEtoPS
Next Topic: more detailed CIA prublems
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Feb 22 10:03:40 EST 2025

Total time taken to generate the page: 0.00423 seconds