Hi,
Here is what I am testing now - which fails on
emulation (no HALT).
------------------------------
; pass in T_count gives nice possible delays
; -----------------
C_sleepy
; -----------------
set1 $108, 1 ; enable interrupt?
ld $111 ; timer 0 = 16 bit
and #$F0
or #$01
st $111
ld T_count
st b
.lp:
clr1 $110, 4 ; stop timer
mov #$05, $115 ; set for a 400th of a sec or so
mov #$DC, $113
set1 $110, 4 ; start it
set1 pcon, 0 ; halt CPU
dbnz b, .lp
clr1 $110,4 ; stop timer
ret
------------------------------
--- Soeren Gust <sgust@...>
wrote:
>
> A long time ago when I wrote Alienfighter I solved
> this problem by doing
> a speed calibration at the start of the program.
> That way I somehow got
> a stable framerate in RC clock mode. Don't ask me
> about details, too much
> time has passed, but you can still get the source
> code at my homepage
> under
>
<http://soeren.informationstheater.de/vm/alienfighter.html>.
>
> Soeren
Thanks! I am looking at that now to see what I
can do with it.
Harry
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail