<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 04 Feb 2013 19:02:17 -0000
From   : Andy@... (Andrew Livens)
Subject: 6502 coding request

I may be wrong, but PAL C64s work on 1/50th don't they ??

-----Original Message-----
From: bbc-micro-bounces+andy=top-banana.com@...
[mailto:bbc-micro-bounces+andy=top-banana.com@...] On
Behalf Of J.G.Harston
Sent: 03 February 2013 23:00
To: BBC Micro Mailing List
Subject: [BBC-Micro] 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


_______________________________________________
bbc-micro mailing list
bbc-micro@...               
http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>