Date : Sun, 03 Feb 2013 22:59:51 +0000
From : jgh@... (J.G.Harston)
Subject: 6502 coding request
Want a credit in the Host interface between BBC BASIC and the Commodore
64 Kernal?
The C64 Kernal counts time in 1/60s of a second. I need to convert
between that and counts of 1/100s of a second when read and set by TIME.
Sub-second errors are acceptable, as long as multiples of 6 are
converted to the same multiples of 10 (eg jiffy=60 becomes time=100) and
vis versa.
\ Jiffy to Time
\ In, &YYXXAA = Timer1 in 1/60s of a second
\ Out, Timer1 in 1/100s of a second
\ Will then be stored in (ptr),0-4
\ Time to Jiffy
\ In, Timer1 in 1/100s of a second
\ Stored at (ptr),0-4
\ Out, &YYXXAA = Timer1 in 1/60s of a second
--
J.G.Harston - jgh@... - mdfs.net
BBC BASIC for the Commodore 64 - mdfs.net/bbcbasic/C64